Results 1 to 3 of 3

Thread: Close and Open a New Form

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2002
    Location
    Newcastle, Australia
    Posts
    42

    Close and Open a New Form

    Hi,

    My Application has two forms.
    A database logon form and a application form.

    After loggin on to the database, I want to close the logon and open the application.

    Now I can close the logon form by me.close(), but for thwe life of me, I can't find how to open the other form.

    Thoughts?
    Last edited by SThornton; Dec 12th, 2002 at 11:02 PM.

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    forms are just classes, so you have to declare an instance ....


    VB Code:
    1. dim frm as new SecondForm()
    2. frm.show()
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3

    Thread Starter
    Member
    Join Date
    Dec 2002
    Location
    Newcastle, Australia
    Posts
    42
    Hi,

    Yep that got it.

    Thanks

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