Private Sub Form_Unload(Cancel As Integer) If MsgBox("您是否要退出系统 ?", 4 + 32 + 256, "考勤系统") = vbYes Then
End Else Cancel = True End IfEnd Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) If MsgBox("确定退出系统吗?", 32 + vbYesNo, "退出") = vbNo Then Cancel = True End If End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) If (MsgBox("确定要关闭吗", vbOKCancel, "提示") = vbCancel) Then Cancel = true
If MsgBox("您是否要退出系统 ?", 4 + 32 + 256, "考勤系统") = vbYes Then
End
Else
Cancel = True
End IfEnd Sub
If MsgBox("确定退出系统吗?", 32 + vbYesNo, "退出") = vbNo Then
Cancel = True
End If
End Sub
If (MsgBox("确定要关闭吗", vbOKCancel, "提示") = vbCancel) Then Cancel = true
End Sub