chowchow123
Active member
- Joined
- Sep 6, 2007
- Messages
- 34
- Programming Experience
- 1-3
Hi
I need to pass data from one form to another - below is the code - it doesn't seem pass the data for some reason
MainForm has the Mem_idTextBox
Manual id Form has TextBox1 - need text box value to be passed to Main Form mem_idTextBox
Thanks
I need to pass data from one form to another - below is the code - it doesn't seem pass the data for some reason
MainForm has the Mem_idTextBox
Manual id Form has TextBox1 - need text box value to be passed to Main Form mem_idTextBox
VB.NET:
Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
My.Forms.MainForm.Mem_idTextBox.Text = TextBox1.Text
Me.Close()
End Sub