Results 1 to 4 of 4

Thread: [RESOLVED] How Do I Keep A Form At The Front Until The User Clicks An Option?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2006
    Posts
    219

    Resolved [RESOLVED] How Do I Keep A Form At The Front Until The User Clicks An Option?

    I'm making a custom message box (it has a few extra things you can't do with a normal one) and I need to keep it at the front until the user chooses Cancel or OK, how?

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: How Do I Keep A Form At The Front Until The User Clicks An Option?

    When you say "keep it at the front", do you mean only within your application (like a normal message box) or system wide (like the secure desktop in Vista)?

    If you mean just within your application then you call the pop-up via the ShowDialog method rather than the Show method.

    If you mean system wide... well, I believe that'll require some Win32 API usage but I don't think it's a good idea from a usability standpoint.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2006
    Posts
    219

    Re: How Do I Keep A Form At The Front Until The User Clicks An Option?

    Thanks kasracer! That's exactly what I needed, thank you very much!

    I didn't mean system-wide because that is quite a bad idea lol.

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: [RESOLVED] How Do I Keep A Form At The Front Until The User Clicks An Option?

    Ok good. You had me worried for a second
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

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