InsideEdge
Instructor
Hi, I converted my Visual Basic 6 to Visual Basic.net and got some errors. The one that I can’t seem to fix is the one below:
Before the upgrade the code looked like this:
If Form1.cmdEnglish(0).Value = True Then
Code to be executed
After the upgrade the line was changed to:
If Form1.DefInstance.cmdEnglish(1).Value = True Then
I checked msdn and found a reference that said that the PerformClick method would do the same thing as the Value would in VB6. The trouble is I can’t seem to find a way to use it to let me know if my button was clicked like I did in VB6. Can anyone help me fix this line of code?
The objective is to test whether the CommandButton was clicked.
Please help.
Before the upgrade the code looked like this:
If Form1.cmdEnglish(0).Value = True Then
Code to be executed
After the upgrade the line was changed to:
If Form1.DefInstance.cmdEnglish(1).Value = True Then
I checked msdn and found a reference that said that the PerformClick method would do the same thing as the Value would in VB6. The trouble is I can’t seem to find a way to use it to let me know if my button was clicked like I did in VB6. Can anyone help me fix this line of code?
The objective is to test whether the CommandButton was clicked.
Please help.