I have a message box with YesNoCancel
button..
Pressing Yes
will do some action and close the app - works fine,
Pressing No
will do nothing and close the app - (see below),
Pressing Cancel
will Do nothing and keep the app open - (see below).
I'm using DialogResult.No
for No button and DialogResult.Cancel
for cancel button.
But pressing either of them triggers DialogResult.Cancel
event. Whats the problem?