I have a form, say Form1, that contains Label1 and a subroutine doText() that loads text into Label1.
Expand|Select|Wrap|Line Numbers
- Public Sub doText()
- Label1.Text = "Hello"
- End Sub
Expand|Select|Wrap|Line Numbers
- Public Sub loadForm()
- Form2.ShowDialog()
- End Sub
Expand|Select|Wrap|Line Numbers
- Public Sub changeText()
- Form1.doText()
- End Sub
I assume there's a way to open Form2 and target Label1 properly and I'm obviously not doing that.
Any suggestions as to the proper format of the code to get this to work?
Thanks