|
逛CSDN看到的,非常好用-
- Private Declare Function MessageBoxTimeout Lib "user32" Alias "MessageBoxTimeoutA" (ByVal hwnd As Long, ByVal lpText As String, ByVal lpCaption As String, ByVal wType As Long, ByVal wlange As Long, ByVal dwTimeout As Long) As Long
- Private Sub 定时关闭MSGBox1()
- x = MessageBoxTimeout(0, "Hello World", "两秒后自动关闭", 68, 1, 2000)
- Debug.Print x
- End Sub
- Private Sub 定时关闭MSGBox2()
- x = MessageBoxTimeout(0, "Hello World", "两秒后自动关闭", 3, 1, 2000)
- Debug.Print x
- End Sub
- Private Sub 定时关闭MSGBox3()
- MessageBoxTimeout 0, "Hello World", "两秒后自动关闭", 0, 0, 2000
- End Sub
复制代码 |
评分
-
5
查看全部评分
-
|