|
-
Aug 28th, 2001, 09:56 AM
#1
Thread Starter
Lively Member
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.
-
Aug 28th, 2001, 09:58 AM
#2
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,
-
Aug 28th, 2001, 09:59 AM
#3
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:
frmInfo.lblInfo.Caption = "Enter your message here"
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.
-
Aug 28th, 2001, 09:59 AM
#4
-
Aug 28th, 2001, 10:03 AM
#5
Thread Starter
Lively Member
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.
-
Aug 28th, 2001, 10:04 AM
#6
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|