Private Sub cmdExit_Click()
If MsgBox("Are you sure?", vbYesNo, "Exiting the application") = vbYes Then
Unload Me
End If
End Sub
VB 退出窗体时提示是否真的退出代码
最新推荐文章于 2021-06-04 03:13:26 发布
Private Sub cmdExit_Click()
If MsgBox("Are you sure?", vbYesNo, "Exiting the application") = vbYes Then
Unload Me
End If
End Sub