Results 1 to 7 of 7

Thread: messageboxes?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2003
    Posts
    227

    messageboxes?

    how can i close a messagebox in code? ( i want to close it 3min after the messagebox being popped up , if the user doesnt close it )

    thanks

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Create your own .

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2003
    Posts
    227
    so your sure theres no way of just getting a reference to the messagebox window?

  4. #4
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    Just a thought, i have not tested it: What about putting it on another thread? and abort that thread after a while and continue with the main thread?
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by Lunatic3
    Just a thought, i have not tested it: What about putting it on another thread? and abort that thread after a while and continue with the main thread?
    If it's on separate thread , first it would lose its behaviour as messagebox (it can be overcome by other windows . tested) . Aborting the thread (I think) will not make it disappear .

  6. #6
    Fanatic Member ZeBula8's Avatar
    Join Date
    Oct 2002
    Posts
    548
    use a timer

  7. #7
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Re: messageboxes?

    Originally posted by persianboy
    how can i close a messagebox in code? ( i want to close it 3min after the messagebox being popped up , if the user doesnt close it )

    thanks
    Is the functionality you after more like a balloon-tip window? Because there is a free project at codeproject, and a dozen or more 3rd party controls..

    If its a standard system messagebox... probably not, since you cannot instantiate an instance of messagebox, only call .Show on a shared instance that is used by your application.

    Best bet would be to make your own custom messagebox control.
    Last edited by nemaroller; Dec 15th, 2003 at 03:49 PM.

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