Results 1 to 2 of 2

Thread: Multiple Forms

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2004
    Location
    Smithfield, Utah
    Posts
    19

    Question Multiple Forms

    Question?

    I'm new to all this (Visual Studio.NET 2003, Visual Basic.NET).

    I'm writting a program with multiple forms. I have a Main form that I would like to be able to go back to with a button click function.

    I can call apon the other forms no problem, but when I want to call apon the Main form, the only way I know how to do this is;

    prvite sub button click BACK
    dim frmMain as new frmMain
    frmMain.showdialog()

    But, this calls the Main form a new Main form. I would like the very first Main form, not another Main form.

    How can I do this?

    Thanks,

    Doug

  2. #2
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780
    You have to keep a reference to it, everything in .Net requires you to have a reference. VB6 just used to fake it on your behalf.

    There are many many examples about on how to communicate between forms, as this is a major change most VB6 ers dont understand. Just search.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width