Results 1 to 6 of 6

Thread: Message box question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2000
    Location
    Sugar Grove, IL
    Posts
    99

    Message box question

    How can I get my program to continue background operations even if a message box or input box is up and waiting for input? My program is monitoring several internet connections at once, and if a message box pops up with information on one of the connections, it does not continue to monitor the other connections until the message box is acknowledged. Any way to get passed this? I need these boxes to pop up because I need the information from them, I cannot automatically dismiss them.
    In case of a water landing, my head may be used as a flotation device.

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    Create your own message box form that is non-modal. If you do this you also have more control over the look of the message.

    Hope this helps,

  3. #3
    j2k
    Guest
    Make a form (call it frmInfo) the same shape and size as an msgbox ... Add a label to it (call it lblInfo), then when a message box should appear, use:
    VB Code:
    1. frmInfo.lblInfo.Caption = "Enter your message here"
    2. frmInfo.Show

    That way it will show the form with the info on, but as the form will be non modal, the program will carry on in the background.

    HTH.

  4. #4
    j2k
    Guest
    Grrrrrrr! I hate doublepostings

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Nov 2000
    Location
    Sugar Grove, IL
    Posts
    99
    he hehe, that;s too simple. But, it makes sense. Thanks for the input.
    In case of a water landing, my head may be used as a flotation device.

  6. #6
    Lively Member
    Join Date
    Jul 1999
    Posts
    77

    Create Form With Function Routine

    Create Form With Function Routine

    This way you can call the new msgbox you made easily and you can add an endless amount of things. This is good if you want to make a msgbox that has "Don't show this message again".

    Then again, I always call APIs to make sure the form stays in top. Sometimes it may fall behind other forms while calling the function if you do not.

    I hope that helps

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