We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to Change Docking window into MDI Child window?

Platform: WinForms |
Control: DockingManager |
Published Date: April 30, 2011 |
Last Revised Date: May 23, 2019

The SetAsMDIChild method of Docking Manager is used to set the docking window to the MDIChild window.

 

Please refer the below code snippet which illustrates this:

C#

//Initialize the TabbedMDI Manager
TabbedMDIManager tabbedMDI = new TabbedMDIManager();
this.IsMdiContainer = true;
//Attach the Form to TabbedMDI Manager.
tabbedMDI.AttachToMdiContainer(this);
 
//To set as MDI Child window
this.dockingManager1.SetAsMDIChild(panel, true);
 
//To get back to Docking window from MDI Child window
this.dockingManager1.SetAsMDIChild(this.panel1, false);

 

VB

'Initialize the TabbedMDI Manager
Dim tabbedMDI As New TabbedMDIManager()
Me.IsMdiContainer = True
'Attach the Form to TabbedMDI Manager.
tabbedMDI.AttachToMdiContainer(Me)
 
'To set as MDI Child window
Me.dockingManager1.SetAsMDIChild(panel, True)
 
'To get back to Docking window from MDI Child window
Me.dockingManager1.SetAsMDIChild(panel, False)

 

Note:

The property named “IsMdiContainer” needs to enable in order to use the “SetAsMDIChild” function in DockingManager.

 

Docked control is set as MDI child

Figure 1: Docked control is set as MDI Child.

Sample Links:

C#: DockingManager_MDIChild_C#

VB: DockingManager_MDIChild_VB

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment
Comments
Dick Baker
Dec 11, 2015
for "illustartes" read "illustrates" Reply
Saravanan Thirunavukkarasu [Syncfusion]
Dec 12, 2015
Hi Dick Baker, Thank you for your notification. We have done necessary changes. Can you please check now? Regards, Saravanan T
Saravanan Thirunavukkarasu [Syncfusion]
Dec 12, 2015
Hi Dick Baker, Thank you for your notification. We have done necessary changes. Can you please check now? Regards, Saravanan T Reply

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon