Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 431
  • Last Modified:

VB 2010 Form Load

I am a new at vb.net 2010. I am using MS ACCESS 2010 for my data base. I have several forms in my VB 2010 express. I created a menu form with several buttons which when each button is clicked on I want it to load the form.

 I also need to know how to    load the start up menu form when the program is exicuted.  This was easy in vb6 How do I do this in vb 2010 express?
0
Poppygb
Asked:
Poppygb
1 Solution
 
kristof1104Commented:
To show a form when you press a button, just add a click event to that button, then instantiate a object of your form and call the show() or showDialog() method.

For example
private sub click()
Dim form1 as new Form1
form1.show();
end sub

Open in new window


then to startup the menuform wher you start your app, just goto the project settings. There is a combobox which determins what form should be loaded at startup

regards kristof
0
 
PoppygbAuthor Commented:
Thanks it works great.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now