Hey, I have another quick question.
I have an if statement
that says
and when i click the button it says label not definedCode:if cmdOK.Visible = false then GoTo form2![]()
Hey, I have another quick question.
I have an if statement
that says
and when i click the button it says label not definedCode:if cmdOK.Visible = false then GoTo form2![]()
Last edited by TcM; 01-17-2008 at 09:03 AM. Reason: Add Code Tags
Please Use Code Tags in your posts, takes only a sec
Please Make a New Thread For Every Separate Question You Have
Now to your Question:
Your code is wrong it should be something like
Hope it helped. If It did help please don't forget to add +rep to my post, ThanksCode:If cmdOk.Visible = False Then Form2.Show
Code:If(cmdOk.Visible = False) Then { Form2.Show }
Sorry HiGuys, your code won't work.
You are mixing two different languages. The curly braces {} are a C# syntax, while the single comparison operator = instead of == is a VB.NET syntax.
VB.NET:
C#:Code:If Not (cmdOk.Visible) Then Form2.Show
Code:if (!cmdOk.Visible) Form2.Show();
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum