I have a form that has a done or ok button but I want to know when / if the user clicks the X button at the top rather than the done button. Is there some sort of boolean that is set to true or something like that?
Printable View
I have a form that has a done or ok button but I want to know when / if the user clicks the X button at the top rather than the done button. Is there some sort of boolean that is set to true or something like that?
You could easily place a boolean toggle under your ok/done button and then check it in the form closing event
Ok, I figured it out. Thanks anyways!
Override OnClosing().
Mark your thread resolved please