I have a windows MDI application. Before a child form is deactivated I would like to check values on the form and prevent the deactivation if the values are incorrect.
I am able to prevent
-Closing the child form by cancelling the closing event
-Navigating records within the child form
-Actions associated with the child form buttons
I need advice on how to abort the following actions when I discover incorrect values on the current child form:
-selection of another MDI child window
-selecting menu items of the parent form
-closing the parent form
In other words, I would like the original child form to behave as though I had cancelled its deactivation event (I understand there is no "Deactivating" event which would allow a cancel)