Hi,
I'm using RadDock and I am trying to find a way within the RadDock.DockWindowClosing event handler to know if the form on the ActiveWindow has set Cancel = true in the Form.Closing handler. I manually close the form in the DockWindowClosing handler like this:
I'm using RadDock and I am trying to find a way within the RadDock.DockWindowClosing event handler to know if the form on the ActiveWindow has set Cancel = true in the Form.Closing handler. I manually close the form in the DockWindowClosing handler like this:
103 HostWindow window = dockMain.ActiveWindow as HostWindow;
104 Form form = window.Content.FindForm();
105 form.Close();
The form object is the correct form. There may be a reason why the form should not be closed and will set
the Cancel property to true; I can not find a way to detect this state. I really need to be able to cancel
a DockWindowClosing event based on the underlying form closing event.
How can I do this?
Thanks,
Mike