Results 1 to 2 of 2

Thread: Cancel button...HELP!

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2004
    Location
    Utah, USA
    Posts
    353

    Cancel button...HELP!

    Here is part of my coding:

    If response = MsgBoxResult.OK Then
    Me.Close()
    Else
    ' What do you do here???
    End If

    What do I do for when the hit the cancel button? How do I just have it go back to the normal screen? Please help!

    Brenda

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949

    Re: Cancel button...HELP!

    Originally posted by brendalisalowe
    Here is part of my coding:

    If response = MsgBoxResult.OK Then
    Me.Close()
    Else
    ' What do you do here???
    End If

    What do I do for when the hit the cancel button? How do I just have it go back to the normal screen? Please help!

    Brenda
    Hi,
    You are thinking too hard

    Just leave it as

    VB Code:
    1. If response = MsgBoxResult.OK Then  
    2.    Me.Close()
    3. End If
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

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