Results 1 to 15 of 15

Thread: [RESOLVED] Using msgbox and vbokcancel options

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2006
    Posts
    36

    Resolved [RESOLVED] Using msgbox and vbokcancel options

    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:
    1. Private Sub CmdClose_Click()
    2.     MsgBox "Are you sure you want to exit?", vbOKCancel
    3. End
    4. End Sub


    Bry

    EDIT- See Bruces post for sweet/simple code to this question.
    Last edited by BryanW; Jun 30th, 2006 at 09:49 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width