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

Enable / Disable Docking at runtime

Thread ID:





53632 Dec 18,2006 09:17 AM UTC Dec 18,2006 02:58 PM UTC WinForms 1
Tags: Tools
Administrator [Syncfusion]
Asked On December 18, 2006 09:17 AM UTC


we have a form with three docked controls (all three controls are docked on the left side).

Now I want to disable (hide) all three controls with a click on the menu. Furthermore I want to bring them back (docked again on the left side) with another click on the menu.

How can I solve this - any help would be great?

Thanks in advance,


Murugan [Syncfusion]
Replied On December 18, 2006 02:58 PM UTC

Hi Chris,

Thanks for choosing Syncfusion products.

DockingManager.SetDockVisibility method shows/hides the docked control and keeps the DockingStyle also.

To show a docked control DockingManager.SetDockVisibility( ctrl , true );

To hide a docked control DockingManager.SetDockVisibility( ctrl , false );

Here is the code snippet for your query:

private void barItem1_Click(object sender, EventArgs e)
if (this.barItem1.Checked)
this.dockingManager1.SetDockVisibility(this.panel1, false);
this.dockingManager1.SetDockVisibility(this.panel2, false);
this.dockingManager1.SetDockVisibility(this.panel3, false);
this.barItem1.Checked = false;
this.dockingManager1.SetDockVisibility(this.panel1, true);
this.dockingManager1.SetDockVisibility(this.panel2, true);
this.dockingManager1.SetDockVisibility(this.panel3, true);
this.barItem1.Checked = true ;

Please use this code and let me know if the issue is resolved.

Murugan P.S


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