Category / Section
How to perform custom initialization of the docking layout in WinForms Docking Manager?
1 min read
Docking layout
During the Form.Load event a form’s docking windows are in an as yet uninitialized state. The correct way to perform custom initialization is by handling the DockingManager.NewDockStateEndLoad event and implementing the customization from within the handler.
Bear in mind that if you are invoking one of the variants of the DockingManager.LoadDockState() method from within the NewDockStateEndLoad handler, it is necessary to use a boolean (or some other kind of) flag to prevent recursion.
Reference link: https://help.syncfusion.com/windowsforms/dockingmanager/docking-events