How-to exit button click event of ( C#) modal dialog without exiting dialog?

  • Thread starter Thread starter Lew Barnesson
  • Start date Start date
L

Lew Barnesson

Hi all,

In the OK_Click event of my custom modal dialog I determine that another
action must be accomplished before exiting (thus closing) the dialog. But
how to do this? Whatever I have tried up to now has caused the dialog to be
exited and closed.

I'm sure there must be a way. Can someone suggest a solution? Thanks.

- Lew
 
What is the DialogResult of the OK button? You might want to check it
and clear it if it is set to something.

Just a thought
 
Chris,

Thanks for your reply. The DialogResult is set to the OK button. But this
check is made in the calling form, and I need to intercept and get out of
the dialog's OK button click event *without* exiting/closing the dialog. I
don't know how to do that. :-(

- Lew
 
Back
Top