1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

How can I Connect an interface (or form) to another interface in a VB.NET program..

Discussion in 'Software Development' started by Aladdin_SA, Apr 7, 2004.

Thread Status:
Not open for further replies.
  1. Aladdin_SA

    Aladdin_SA Thread Starter

    Joined:
    Apr 5, 2004
    Messages:
    4
    Hi!

    I'm building multiple interfaces (forms) in VB.NET. How do I make a button in my first interface which I'm calling "Main Menu" take me (or the end user) to other interfaces in the program? in other words, how do I make end users go back and forth between forms? Also how do I make the "Exit" button close the form? What kind of code do I need to do all of that? Does each interface has to be in its own project or is it possible to build multiple interfaces in one project?

    Thank you.
     
  2. MustBNuts

    MustBNuts

    Joined:
    Aug 21, 2003
    Messages:
    2,016
    Okay, unless VB.net has changed dramatically from VB6, the code for your comand button should look like this:

    formName.show

    to close it:

    unload me

    MBN
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/217957

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice