
I have event handlers for mainForm.FormClosing and dockmanager.WindowClosing.
When I close a DocumentWindow, I dispose of it. TabbedMdiWindowCloseReason = User
When I close the main form using the "X" in the upper right, DocumentWindows start closing (TabbedMdiWindowCloseReason = User) before the FormClosing event is handled and I give an "Are you sure?" message. If the user presses "Cancel", my document windows are already gone.
Is there a way to either get the mainForm.FormClosing handler to go first or to add a new TabbedMdiWindowCloseReason, Form?
When I close a DocumentWindow, I dispose of it. TabbedMdiWindowCloseReason = User
When I close the main form using the "X" in the upper right, DocumentWindows start closing (TabbedMdiWindowCloseReason = User) before the FormClosing event is handled and I give an "Are you sure?" message. If the user presses "Cancel", my document windows are already gone.
Is there a way to either get the mainForm.FormClosing handler to go first or to add a new TabbedMdiWindowCloseReason, Form?