dynamic_sysop
Well-known member
Hi guys , ive been working on an easier way to load a form and send info back to the starting form / another form. theres no need to modify the Sub New really , this is all you need to do :
from the form you already have open to call the second form :
from the second form ( eg: Form2 ) to set some text in Form1s Textbox :
i think this may save a bit of messing for people
from the form you already have open to call the second form :
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim frmKid As New Form3()
Me.AddOwnedForm(frmKid)
frmKid.Show()
End Sub
from the second form ( eg: Form2 ) to set some text in Form1s Textbox :
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim frmBoss As Form1 = Me.Owner
frmBoss.TextBox1.Text = "test" ///put some text in Form1s textbox.
End Sub
i think this may save a bit of messing for people
