Realizo un cambio a mi formulario principal en su propiedad IsMdiContainer = true.
Código PHP:
Public Class Principal
Private Sub ToolStripButton1_Click(sender As Object, e As EventArgs) Handles ToolStripButton1.Click
Dim d As New Form1
d.MdiParent = Me
d.Show()
End Sub
End Class
Código PHP:
Public Class Form1
Private Sub btnEnviar_Click(sender As Object, e As EventArgs) Handles btnEnviar.Click
Form2.ShowDialog()
End Sub
End Class
Al darle click al botón de este formulario, quiero que el dato del textBox pase el texBox del Form1.
Código PHP:
Public Class Form2
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles btnEnviar1.Click
Form1.txtNombre.Text = txtNombre1.Text
Me.Close()
End Sub
End Class
gracias.