messagebox怎麼用?
2023-03-29 08:17:59 1
很簡單
比如:
Private Sub Command1_Click
If Text1.Text = "20100344" Then
MsgBox ("登陸成功!")
Shell "C:Documents and SettingsAdministrator桌面登錄系統組件binbg1.exe"
End
Else
MsgBox ("您的輸入有誤,請重新輸入!")
End If
End Sub
這是輸入密碼是的 MessageBox 。
還可以這樣:
Private Sub Command1_Click
MsgBox "正在退出,請稍候!"
End
End Sub
這是退出vb軟體時的 MessageBox 。