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

docking to mdi child

Thread ID:





68489 Sep 23,2007 09:01 PM UTC Sep 25,2007 09:56 AM UTC WinForms 1
Tags: Tools
Asked On September 23, 2007 09:01 PM UTC


I have an mdi parent with a docking manager on it(dockingManager1) and multiple mdi children. I am trying to dock a control to child forms using the following code:

TextBox myText = new TextBox();
myText.Parent = this.ActiveMdiChild;
this.dockingManager1.DockControl(myText, this.ActiveMdiChild, Syncfusion.Windows.Forms.Tools.DockingStyle.Bottom, 200);

is it not possible to dock controls to mdi children from mdi parent?


Jisha Joy [Syncfusion]
Replied On September 25, 2007 09:56 AM UTC

Hi Kais,

Thank you for your interest in Syncfusion Products.

When the host control of the DockingManager to a form, then it can be used to dock controls to that form only.

If we want to dock any control to the MDI child from MDI parent then the MDI child object must be assigned as the HostControl of the DockingManager
Here is the code snippet.

this.dockingManager1.HostControl = this.ActiveMdiChild;
this.dockingManager1.DockControl(myText, this.ActiveMdiChild, Syncfusion.Windows.Forms.Tools.DockingStyle.Bottom, 200);

Let me know if you have any questions



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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