Articles in this section
Category / Section

How to save or load docking state information of an application in WinForms Docking Manager?

2 mins read

Docking state

In WinForms Docking Manager, the AppStateSerializer’s Singleton method is the best suited approach for this scenario. Please make sure that every MDIChild form has its own unique name here so that the dock state information does not get overwritten. Invoke the AppStateSerializer’s InitializeSingleton method in the parent form’s constructor specifying the appropriate storage medium and the destination path and file name. Then within each of the MDIChild forms, call the SaveDockState or LoadDockState methods without any parameters. This will invoke the default SerializeMode value and the destination path specified by the AppStateSerializer’s InitializeSingleton method. This approach will ensure that the dock state information of every child form is buffered and written to the destination file in one go, so as to prevent repeated opening or closing of the destination file which might lead to overwriting, and hence loss of information. 

Reference link:


I hope you enjoyed learning about how to save or load docking state information of an application.

You can refer to our WinForms Docking Manager feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms Docking Manager documentation to understand how to present and manipulate data. 

For current customers, you can check out our WinForms components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our WinForms Docking Manager and other WinForms components.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment