VB 2010 Form Load

Posted on 2012-09-09
Last Modified: 2012-09-10
I am a new at 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?
Question by:Poppygb
    LVL 2

    Accepted Solution

    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;
    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

    Author Closing Comment

    Thanks it works great.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
    Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
    The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
    The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now