View Full Version : open forms


JonyBravo
10-30-2006, 01:29 PM
Hi there.

As Im begginer on VB.NET I wondered if someone could solve me this easy problem.
1 - what's the code used to switch form when clicking an button? something similar to this: DoCmd.OpenForm "frmTest"

2 - how can I change wich form to open when I debbug an application, like on VB Access we change it on start up?

Thanks

jonybravo

skea
11-07-2006, 09:47 PM
Hi. unlike Access, .NET is OO(Object Oriented), so most of what you will do will need creating objects and using thier instances wherever you need.

To show a form, you create an instance of it, then call the show or showDialog method of the instance.

If you want to change the startup form, you go to the Project Properties and you set the startup form. Just like you do in Access.

Hope that helps.

skea
11-07-2006, 10:11 PM
thses Tutorials may help you.
http://quickstart.developerfusion.co.uk/QuickStart/