Results 1 to 3 of 3

Thread: Quick & Easy OKCancel Question [RESOLVED]

  1. #1

    Thread Starter
    Lively Member milkmood's Avatar
    Join Date
    Mar 2005
    Location
    Forests of Delta Halo
    Posts
    109

    Resolved Quick & Easy OKCancel Question [RESOLVED]

    I'm using a MessageBox with OKCancel buttons.

    What's the syntax for Exit Sub when Cancel is clicked, and continue of OK is clicked?

    VB Code:
    1. MessageBox.Show("Are you sure you want to permanently delete this customer?", "Permanently Delete?", MessageBoxButtons.OKCancel)

    Thanks,
    CP
    Last edited by milkmood; May 25th, 2005 at 10:38 AM.

  2. #2
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196

    Re: Quick & Easy OKCancel Question

    VB Code:
    1. If MessageBox.Show("etc..") = DialogResults.Ok Then
    2.  'dostuff
    3. Else
    4.  'blah
    5. End If

  3. #3

    Thread Starter
    Lively Member milkmood's Avatar
    Join Date
    Mar 2005
    Location
    Forests of Delta Halo
    Posts
    109

    Re: Quick & Easy OKCancel Question

    Thankee!

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