问题
Help me please to create a messagebox which stays always on top, and user can't use other windows functions like calling start menu or interacting with other windows until he presses the OK button on messagebox.
回答1:
The second parameter of the MsgBox
function allows you to specify options for the dialog.
MsgBox "Hello, World!", vbSystemModal
For more information, see my article Mastering the Message Box.
回答2:
MsgBox "Hello, World!", +vbSystemModal
Make sure to add the "+" before vbSystemModal
来源:https://stackoverflow.com/questions/11394432/create-vbscript-messagebox-that-stays-on-top-and-blocks-other-windows