I have a MDI Windows Forms application and I remind on FormClosing
event the user to save, this happens on the parent and child forms. But I would like the program to ask only one time for all the forms when the user tries to exit the application using the parent X button or the Exit Application menu button.
I tried with a bool static flag on the parent FormClosing event but the child(s) FormClosing comes first and so the flag is always false.
Any suggestions for making this trick? I can't figure handling the right event maybe.
[SOLVED]
e.CloseReason == ..