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

Parents
  • 44743
    posted

    Is it an mdi application with the dock manager on one of the children? If so, you can probably get around this by handling the FormClosing event of the mdi child rather than the parent. If not, it sounds like a bug and I would recommend submitting the issue to the support group: http://ko.infragistics.com/gethelp.

Reply Children