I am trying to pass a variable that I populated in a form and then closed that form, open a new form and use that variables content in the new form all in the same application. Please help if you can, thanx
Printable View
I am trying to pass a variable that I populated in a form and then closed that form, open a new form and use that variables content in the new form all in the same application. Please help if you can, thanx
public Form1Var as string
form1var = "Stuff on form1"
'new form
dim newvar as string
newvar = Form1.form1var
Many Thanx, it is easy when you know how
Or you can set the Tag property of the new Form to whatever you wanbt it to be.
Code:Form2.Tag = MyVar
Unload Me