ProgramWindowVB Classic

vbSystemModal Not Halting Applications

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.

[Previous] PeekMessage
[Next] Creating COM wrapper

Google


VB Classic

Self-Uninstalling ActiveX Component?
To open an existing word doc and perform a search
Formatting Variables in Form
Why got a runtime 91 error on another PC
VBA for VISIO
Connecting to Non-Access database
Number to words
DataReport questions
Error in Selection Formula (plz Help)
Getting valid shortcut - without scripting
Microsoft CDO Windows 2000
Formatting content of Inputboxes
Combo box changing textbox
How do I place a return into a string value?
error NO such Interface Supported
New Programmer troubles
Help me !!--> image cropping
How to work with Multi Projects in VB6
opening a form by date
How to AddPushpin using street name