VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Option Dialog (Yes_No_Cancel)

by Wayne Alec de Bruin (6 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 16th April 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Option Dialog (Yes_No_Cancel)

API Declarations


NONE

Rate Option Dialog (Yes_No_Cancel)



    x = MsgBox("Dialog Message ?", _
    vbYesNoCancel Or vbQuestion + vbDefaultButton2, "Question")
If x = vbYes Then
    MsgBox "You clicked the Yes button"
ElseIf x = vbNo Then
    MsgBox "You clicked the No button"
Exit Sub
Else
    'Cancel was selected.
End If

Download this snippet    Add to My Saved Code

Option Dialog (Yes_No_Cancel) Comments

No comments have been posted about Option Dialog (Yes_No_Cancel). Why not be the first to post a comment about Option Dialog (Yes_No_Cancel).

Post your comment

Subject:
Message:
0/1000 characters