Easy WinForm Question
Posted on 2009-05-12
I'm a asp.net guy not really a winform guy. I want to know something so simple it's stupid :)
I have two forms. form1 and form2
on form1 I have a button go to form2
when I click the button I do this:
Form2 frm2 = new Form2();
and then we are now in form2.
on form2 I have a back button...
how can I get back to the first form...
obviously if I do this:
Form1 frm1 = new Form1();
I will now have 2 form1 objects. (which I don't want.) and it will flush all the information that I put on Form1.
Any ideas how to do this?