Hi guys , i've been working on an easier way to load a form and send info back to the starting form / another form. there's 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 :
VB 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 Form1's Textbox :
VB 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 Form1's textbox. End Sub
i think this may save a bit of messing for people![]()





Reply With Quote