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. Image for the cookie policy date
close icon

Closing Child Controls with Host Control

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,
Suhail


2 Replies

FS Fathima Shalini P Syncfusion Team 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:

http://websamples.syncfusion.com/samples/Tools.Windows/F77239/main.htm

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.

Regards,
Fathima





AB abd April 2, 2018 05:31 PM UTC

-

Loader.
Live Chat Icon For mobile
Up arrow icon