-
Multiple Forms
Question?
I'm new to all this (Visual Studio.NET 2003, Visual Basic.NET).
I'm writting a program with multiple forms. I have a Main form that I would like to be able to go back to with a button click function.
I can call apon the other forms no problem, but when I want to call apon the Main form, the only way I know how to do this is;
prvite sub button click BACK
dim frmMain as new frmMain
frmMain.showdialog()
But, this calls the Main form a new Main form. I would like the very first Main form, not another Main form.
How can I do this?
Thanks,
Doug
-
You have to keep a reference to it, everything in .Net requires you to have a reference. VB6 just used to fake it on your behalf.
There are many many examples about on how to communicate between forms, as this is a major change most VB6 ers dont understand. Just search.