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

DockingManager how to hide and show controls

Thread ID:





97005 Oct 20,2010 06:31 AM UTC Oct 21,2010 10:07 AM UTC WinForms 1
Tags: Tools
Parvind Saini
Asked On October 20, 2010 06:31 AM UTC

I am trying to hide and show control within the docking manager depending on dynamic conditions.

- How I hide control and show it dynamically?

- I need to fire an event when a particular tab is clicked in we are adding controls as child controls and docking style Tabbed.
_dockingManager.DockControl(loansCashAndEventsControl, loansDrawdownEventsUserControl, DockingStyle.Tabbed, 170);

I need to find out which tab is getting clicked.

Vallarasu S [Syncfusion]
Replied On October 21, 2010 10:07 AM UTC

Hi Parvind,

Thanks for your interest in Syncfusion products.

[#1]. To show / hide a control you can make use of SetDockVisibility method as follows,


and there are option to autohide the control on applicaion load, have a look at the following documentation.


[#2]. DockingManger has property to get the ActiveControl, and there is no direct API to get the active tab as the dock sates are dynamically changed. By gaining reference to the tabcontrol you can get the active tab,
refer the attached sample for the implementation.

[#3.]. With the above implementation you can raise an event at the MouseDown event based on which tab is active.

Please let us know your concerns, and we are happy to assist you.

Vallarasu 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