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
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