Option Explicit Private Declare Function MessageBox Lib "user32" Alias "MessageBoxA" (ByVal hwnd As Long, ByVal lpText As String, ByVal lpCaption As String, ByVal wType As Long) As LongDim i As IntegerPrivate Sub Form_Click() MessageBox Me.hwnd, "API MessageBox!", "使用API的MESSAGEBOX", vbOKOnly + vbExclamationEnd SubPrivate Sub Timer1_Timer() i = i + 1 Label1.Caption = CStr(i) End Sub
Private Declare Function MessageBox Lib "user32" Alias "MessageBoxA" (ByVal hwnd As Long, ByVal lpText As String, ByVal lpCaption As String, ByVal wType As Long) As LongDim i As IntegerPrivate Sub Form_Click()
MessageBox Me.hwnd, "API MessageBox!", "使用API的MESSAGEBOX", vbOKOnly + vbExclamationEnd SubPrivate Sub Timer1_Timer()
i = i + 1
Label1.Caption = CStr(i)
End Sub
你自己做一个msgbox函数显示自己的窗体代替系统的msgbox就可以了