Create vbscript messagebox that stays on top and b

2019-01-15 10:15发布

问题:

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