Results 1 to 4 of 4

Thread: msgbox results

  1. #1

    Thread Starter
    Hyperactive Member notquitehere188's Avatar
    Join Date
    Dec 2004
    Posts
    403

    msgbox results

    how do you find what option was clicked in a messagebox with multiple buttons
    It's not just Good, It's Good enough!



    Spelling Eludes Me

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: msgbox results

    Each button has it's own constant or number value.

    There is vbYes, vbOk or vbCancel, for instance.

  3. #3
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: msgbox results

    VB Code:
    1. If MsgBox("Would You Like To Exit?", vbYesNo, "Confirm Exit") = vbYes Then
    2.     'unload form here ...
    3. End If

  4. #4
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: msgbox results

    Here...

    VB Code:
    1. Select Case MsgBox("Choose option.   ", vbAbortRetryIgnore)
    2. Case vbAbort
    3.      
    4. Case vbRetry
    5.      
    6. Case vbIgnore
    7.      
    8. End Select
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

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