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

Closing Child Controls with Host Control

Thread ID:





77239 Oct 22,2008 09:48 AM UTC Apr 2,2018 05:31 PM UTC WinForms 2
Tags: DockingManager
Suhail Shaikh
Asked On October 22, 2008 09:48 AM UTC

Hi ,

I have a DockingManager , which hosts 3 child controls. I would like to know the way to close all the floating child controls when the Host Control is closed.

Thank you,

Fathima Shalini P [Syncfusion]
Replied On October 23, 2008 11:01 AM UTC

Hi Suhail,

Thank you for your interest in Syncfusion Products.

I am not much clear about your exact requirement, because when the HostControl of the docking manager is closed all the controls will be closed by default. If your intention is to close the controls when a particular control is closed, it is possible using SetDockVisibility() method.

private void dockingManager1_DockVisibilityChanging(object sender, Syncfusion.Windows.Forms.Tools.DockVisibilityChangingEventArgs arg)
if (arg.Control == this.panel1)
this.dockingManager1.SetDockVisibility(this.panel2, false);
this.dockingManager1.SetDockVisibility(this.panel3, false);

Please refer to the below sample that illustrates this:


If I have misunderstood your requirement, could you please let me know in detail of your requirement so that I could work out in depth and provide you a better solution?

Please let me know if any concerns.


Replied On April 2, 2018 05:31 PM UTC



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