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.
Unfortunately, activation email could not send to your email. Please try again.

Set a dominant control in docking manager

Thread ID:





73553 May 9,2008 01:32 PM Jun 5,2008 12:43 PM Windows Forms 2
Tags: Tools
Patrick Hampton
Asked On May 9, 2008 01:32 PM


Is there a way to specify a Main or Dominant panel in the DockingManager? What I have is an application that has a central panel with other panels docked around it. Ideally I would like to have it work such that when the user adjusts the widtho on one of the side panels, only the central panel adjusts to fill in the space rather than all of the panels. Is this possible?


Administrator [Syncfusion]
Replied On May 27, 2008 09:09 AM

Hi Patrick,

Thank you for using Syncfusion products.

This can be achieved by setting the DockToFill property of the DockingManager to true. While using this, if the hosting form has number of Docked controls, if the panels are autohidden or closed one after the other, the other panels will fill the free space that occurs and by the way, when the last but previous control is auto hidden or docked, the last control will fillup the form.

The following Browser sample features this functionality.

\\My Documents\Syncfusion\EssentialStudio\\Windows\Tools.Windows\Samples\2.0\Docking Package\WindowFill\

Please try this and let me know if this helps.


Patrick Hampton
Replied On June 5, 2008 12:43 PM


Thanks for your response. I already have DockToFill set and see the behavior you are describing. The problem is I don't want All of the other panels to grow to fill in the space left by a closed or autohidden control. I want to specify ONE control that grows to fill that space leaving the other controls unchanged.



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.

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.