|
I am having trouble trying to get a message box to halt all applications until the user clicks ok.
This line:
MsgBox "You have a message waiting for you", vbSystemModal, "System Message"
Creates message box but I am able to drag the window around, open other applications, etc. and totally ignore the box.
I am using Windows XP SP1. Any help would greatly be appreciated.
Thanks,
Xuan
Replay:vbSystemModal Not Halting Applications
The vbSystemModal flag is a carry over from 16-bit Visual Basic. System modal windows are not supported in the Win32 API world.
Replay:vbSystemModal Not Halting Applications
Just using msgbox will be fine, you can however disable the form (and all it's controls) before the msgbox is shown, and then enable them once the user has clicked ok to your msg.
Replay:vbSystemModal Not Halting Applications
Just tried a form with 2 command buttons, both launching msgbox
If you launch the 1st msgbox, you cannot click the 2nd command button until you've cleared the 1st msgbox.
Replay:vbSystemModal Not Halting Applications
Okay, will try. Thank you.
|