Results 1 to 7 of 7

Thread: [RESOLVED] Pop Up Form

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    Resolved [RESOLVED] Pop Up Form

    I want to make a form pop up the first time a user executes my application to create some settings to save to an INI file for future reference.

    How do I make this form pop up but not load the main form until the settings have been selected?
    CodeBank: Launch IE

  2. #2
    Fanatic Member space_monkey's Avatar
    Join Date
    Apr 2005
    Location
    神と歩くこと
    Posts
    573

    Re: Pop Up Form

    In your main form load

    VB Code:
    1. Form2.Show vbModal

    the modal call will make sure that nothing else is executed in your main form until the second form releases.
    Using VB6 or VB.net 2008 with .net 3.5
    "Life... death... either way I'll be confined to a small cubicle!" - Hermes Conrad

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    Re: Pop Up Form

    Thanks space_monkey, how do you release?

    VB Code:
    1. Form2.Hide
    CodeBank: Launch IE

  4. #4
    Fanatic Member space_monkey's Avatar
    Join Date
    Apr 2005
    Location
    神と歩くこと
    Posts
    573

    Re: Pop Up Form

    Yeah you can use .hide or unload the form.
    Using VB6 or VB.net 2008 with .net 3.5
    "Life... death... either way I'll be confined to a small cubicle!" - Hermes Conrad

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Pop Up Form

    It would be better to unload the form. If you have everything you need, then there is no reason to keep it loaded and in memory.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    Re: Pop Up Form

    Ok, thanks all...
    CodeBank: Launch IE

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Pop Up Form

    Quote Originally Posted by bat711
    Ok, thanks all...
    Curiousity question.

    If you only need this to run once the very first time your program starts, how are you preventing it from being displayed again the next time your program runs?

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