P
poldoj
Hi all, I have a simple question. I have 2 form; form1 is the main form and
form2 is a secondary form. Just wondering if is possible to change the text
value of a control label placed in the form1 from form2. Example, I have put
a button inside the form2 like this:
________________
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim xform1 As Form1
xform1.Label1.Text = "test"
End Sub
___________________
This code produce an error
Thanks.
form2 is a secondary form. Just wondering if is possible to change the text
value of a control label placed in the form1 from form2. Example, I have put
a button inside the form2 like this:
________________
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim xform1 As Form1
xform1.Label1.Text = "test"
End Sub
___________________
This code produce an error
Thanks.