I am looking to display a confirmation ok/cancel when exitin my program. As it is right now, both the OK and CANCEL buttons exit the program. I would like to exit on the OK and keep program running when CANCEL is clicked.(In case the close button was hit by accident). Thanks for any replies.
VB Code:
Private Sub CmdClose_Click() MsgBox "Are you sure you want to exit?", vbOKCancel End End Sub
Bry
EDIT- See Bruces post for sweet/simple code to this question.




Reply With Quote