i want to do a msgbox that prompts the user to exit, or not. problem is, even when you click 'no,' you still exit.
here's my code
VB Code:
Private Sub Form_Unload(Cancel As Integer) Dim m As Integer m = MsgBox ("Are you sure you want to exit?", vbExclamation + vbYesNo, "Exit?") Select Case m Case vbYes Unload frmMain Exit Sub Case vbNo Exit Sub End Select End Sub
what is wrong here?
thanks d00dz
