0
If using multiple forms I usually
1: Add additional forms
2: Add a module and within that module put -
Public Fm1 as Form1
Public Fm2 as Form2 and so on
In form load event of each form put - "Fm1 =Me","Fm2=Me" and so on
In the form1 button put
If Fm2 Is Nothing = True Then
Dim Fm2 As New Form2
Fm2.Show()
Else : Fm2.Show()
End If
This will load only one instance of form2 - note to keep form2 active in your project you will have to hide it rather than using
Close()
Put a textbox onto form1 and a label and button on form2
in form2 button event put - Label1.Text = Fm1.Textbox.Text
now you can see how data is transfered