Hi i have two forms, form1 and form2. form1 is my main class. Both form1 and form2 inherits System.Windows.Forms.Form. In order to use the methods and variables in form2, i had to instaniate form2 by doing:
dim frm2 as new form2()
Now in form2 I want to use the variables and methods in form1. I cannot access them. If I instaniate a form1, the form loses the info that it had before. Say in form1 i had a variable "temp" that had a value of 20. If i do
dim frm1 as new form1()
and i do msgbox ( frm1.temp) i will not get 20 because that value isnt there. Is there a way to use variables from my main form?? Please help thanks.
dim frm2 as new form2()
Now in form2 I want to use the variables and methods in form1. I cannot access them. If I instaniate a form1, the form loses the info that it had before. Say in form1 i had a variable "temp" that had a value of 20. If i do
dim frm1 as new form1()
and i do msgbox ( frm1.temp) i will not get 20 because that value isnt there. Is there a way to use variables from my main form?? Please help thanks.