2012-07-09 27 views

回答

7

MsgBox函数的第二个参数允许您指定对话框的选项。

MsgBox "Hello, World!", vbSystemModal 

欲了解更多信息,请参阅我的文章Mastering the Message Box

+0

前两者vbOKOnly和vbSystemModal不会阻止其他窗口。它甚至有可能吗? – 2012-07-09 21:07:20

+0

在Win16系统上,所有应用程序都暂停,直到用户对消息框作出反应。在更现代的Win32系统上,消息框将保留在其他窗口之上,但行为是应用程序模式。 – Nilpo 2012-07-10 05:25:02

-2

MSGBOX “你好,世界!”,+ vbSystemModal

确保添加了 “+” vbSystemModal

+0

为什么匿名的反对票?你看见什么了?! https://imgs.xkcd.com/comics/wisdom_of_the_ancients.png – Kristopher 2016-08-15 14:18:08

+3

我猜想,因为这个答案没有添加任何东西到接受的答案和“+”的要求是不正确的AFAICT – 2016-08-16 15:02:42

相关问题