I have a winforms application and I need a good way to handle the following..
Basically, I have the main application form, and within that, I have child forms.
The user can hit 'close' on the parent form. But within the child form, some things might be happening. For instance, I may have edited some databound fields.
I currently catch the close within the child, and correctly save any changes.
However, now I want the option to cancel the close. So the child form would prompt the user, and they could actually cancel the application from closing.
I tried e.Cancel within the child form closing event, but this isn't working- I'm assuming because the parent is still closing... Is there a way to cancel the parent form's closing process from within the child...?