Articles in this section
Category / Section

How save and load dock state functions in WinForms Docking?

1 min read

Save and load dock state

In the WinForms DockingManager, you can perform serialization or de-serialization for a particular control by using its functions, SaveDockState and LoadDockState.

The following code example demonstrates the same.

 

C#

//Saves DockState for specific controls.
this.dockingManager1.SaveDockState(serialize, this.gradientPanel2);
serialize.PersistNow();
//Loads the DockState for specific controls.
this.dockingManager1.LoadDockState(serialize, this.gradientPanel2);

VB

'Saves DockState for specific controls.
Me.dockingManager1.SaveDockState(serialize, Me.gradientPanel2)
serialize.PersistNow()
'Loads the DockState for specific controls.
Me.dockingManager1.LoadDockState(serialize, Me.gradientPanel2)

 


Samples:

C#: http://www.syncfusion.com/downloads/support/directtrac/140201/ze/DockingManager_Restore2013304465

VB: http://www.syncfusion.com/downloads/support/directtrac/140201/ze/DockingManager_Restore_VB1907559684

 

UG document link: https://help.syncfusion.com/windowsforms/dockingmanager/serialization#persisting-dock-state-in-default-storage




Conclusion

I hope you enjoyed learning how save and load dock state functions in WinForms Docking.

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

For current customers, you can check out our WinForms DockingManager and other 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 WPF  other 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?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied