Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) If MsgBox("退出该程序?", vbYesNo + vbQuestion) = vbNo Then Cancel = True End If End Sub
Private Sub Form_Unload(Cancel As Integer) If MsgBox("退出该程序?", 256 + 4 + 64) = vbNo Then Cancel = True End If End Sub
Private Sub Form_Unload(Cancel As Integer) If MsgBox("退出该程序?",vbYesNo) = vbNo Then Cancel = True End If End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) If MsgBox("退出该程序?", vbYesNo + vbQuestion) = vbNo Then Cancel = True End If End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) If MsgBox("确定退出?", vbYesNo, Me.Caption) = vbNo Then Cancel = -1 End If End Sub
If MsgBox("退出该程序?", vbYesNo + vbQuestion) = vbNo Then
Cancel = True
End If
End Sub
If MsgBox("退出该程序?", 256 + 4 + 64) = vbNo Then
Cancel = True
End If
End Sub
If MsgBox("退出该程序?",vbYesNo) = vbNo Then
Cancel = True
End If
End Sub
If MsgBox("退出该程序?", vbYesNo + vbQuestion) = vbNo Then
Cancel = True
End If
End Sub
If MsgBox("确定退出?", vbYesNo, Me.Caption) = vbNo Then
Cancel = -1
End If
End Sub