This is my code :
form 1 :
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Hide()
Form2.Show() 'to open next form
End Sub
End Class
form 2 :
Public Class Form2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = Form1.TextBox1.Text 'so the name put into textbox1 on form 1 will transfer to form 2's textbox 1
Me.Hide()
Form3.Show()
End Sub
End Class
This is what I have tried. I want what is put into textbox1 (by the user) to transfer to form 2 with the click of the button. But it does not transfer. There are no errors, but in form 2 my textbox is empty.
Any suggestions on what I am doing wrong?
Thanks

New Topic/Question
Reply



MultiQuote








|