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