Public Class Form2
Inherits System.Windows.Forms.Form
Public frm As Form1 '/// first make a public reference to your form ( eg: Form1 )
#Region " Windows Form Designer generated code "
Public Sub New(ByVal myForm As Form) '/// make myForm as a Form ( not Form1 )
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
frm = myForm '/// initialize the instance of the form as Form1.
'Add any initialization after the InitializeComponent() call
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
frm.TextBox1.Text = "i am some text from form2 to form1's textbox!"
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim frmTwo As New Form2(Me)
frmTwo.Show()
End Sub