Make confirm dialog appear before on click event action

Zak14

Registered User.
Local time
Today, 08:36
Joined
Jun 27, 2014
Messages
166
I'd like a confirm dialog to appear on button click, so when the user clicks 'yes', the on click event should continue and when the user click 'no', the event should stop.

Thanks.
 
How about using a MessageBox?
Code:
Priavte Sub yourButtonName_Click()
    If MsgBox("You clickt the fecking button, do you want to continue?", vbYesNo) = vbYes Then
       [COLOR=Green] 'do your thing[/COLOR]
    End If
End Sub
 

Users who are viewing this thread

Back
Top Bottom