I have a winforms based MDI application.
When a user clicks on the close button on the Main MDI, amongst many open child forms, one of forms has a prompt for closure like
"Do you want to close this form?, OK / CANCEL"
Is it possible to stop the closing of the main MDI depending on the user's choice of closing the child form?
As of now, the application continues back to the main MDI execution and closes the main MDI, regardless of whether the user has clicked OK or CANCEL
If yes, would appreciate some sample code...