PDA

View Full Version : Showing another Form


firewars
11-09-2002, 05:31 PM
Hello there,

I use VB .NET and am trying to show another Form in my current project. I tried a lot, including Form2.Show() but it keeps telling me that the member has to be 'shared'.

Any ideas?

VoodooWizard
01-11-2003, 12:09 PM
I can help you out with that one its actually very easy. first thing you must do is at the top of the program after that windows form generated code. do somthing like this:
dim form2 as new form2 what that does is it creates a variable that you use to access the other form.
then when you want it to show up you type in:
form2.showdialog()
And that's all you need to do, and you should get the results you wanted. Hope that helps you out.