Articles in this section
Category / Section

How to dock a form within a host form in WinForms Docking Manager?

1 min read

Dock a form within a host form

A form can be docked within another host form. You need to set the following properties for the child form to be able to do this:

C#

this.f1.TopLevel = false;
this.f1.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.dockingManager1.SetEnableDocking(this.f1,true);

 

VB

Me.f1.TopLevel = False
Me.f1.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
Me.dockingManager1.SetEnableDocking(Me.f1,true)

 

Once these properties are set, the child form would behave like any other dockable control and it can be docked or floated as desired.

Reference link: https://help.syncfusion.com/windowsforms/dockingmanager/dock-window#enabledisable-dock-functionality

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