Interview Question in Visual Studio 2003
Interview Question :: Problem with Multiple Forms .NET 2003 |
I have written a little program using Microsoft Visual Studio 2003 and I wanted to make a simple application to display a second form followed by displaying a message in a label box.
First, I create a first form with a label box and a button. The button allows me to go to the second form.
Code:
Dim form2 as new form 2
form2.visible=true
Then I go into the second form and I have a button to display a message in the label box from form1.
Code:
Dim form1 as form1
form1.label1.text="cake"
The second I hit the button it pops up with an error. What am I doing wrong? |
|
|
|

Loading ...