open forms (1 Viewer)

JonyBravo

Registered User.
Local time
Today, 10:24
Joined
Jan 17, 2006
Messages
89
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

Registered User.
Local time
Today, 10:24
Joined
Dec 21, 2004
Messages
342
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.
 

Users who are viewing this thread

Top Bottom