I have a dialog that I show with .ShowDialog(). It has an OK button and a Cancel button; the OK button also has an event handler.
.ShowDialog()
I want to
You can catch FormClosing an there force the form to remain opened. use the Cancel property of the event argument object for that.
e.Cancel = true;
and it should stop your form from closing.