Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
680
Problem with saving the layout before closing the application
posted

Hello,

 I have a CAB application that uses the UltraDockManager. In this application I allow the user to save and load layouts. I offer the user to save his layout if he has made any changes to it before closing the application, something that is done on the Form_Closing event of the main form. This way it is possible for the user to cancel the exiting of the application as well.

My problem is that it seems that the DockingManager is disposed somewhere between when the user presses the 'X' of the window and the event Form_Closing is triggered, so once I ask the user if he wants to save the layout, there is nothing left to save.

How can I save the layout before exiting the application?

 Regards, Johan