Sorry if this is a stupid question, but I'm starting here.
I have a simple user dialog with two buttons: Accept and Cancel. The Accept button is an acceptButton form.
I want to do some checks in the Accept_Click event and decide if I can close the dialog or not, but every time it leaves this method, the dialog automatically closes and returns Ok.
What can I do to stop the closing of the dialogue? or should i do something else?
thanks
Dkangelito
source share