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

Set control MaximumSize for docking window

Thread ID:





129264 Mar 8,2017 09:44 AM UTC Mar 15,2017 04:08 AM UTC WinForms 3
Tags: DockingManager
Michael Lohr
Asked On March 8, 2017 09:44 AM UTC


I have a user control with a fixed size which I want to use as a docking window.
I have found a method to set the minimumsize (DockingManager.SetControlMinimumSize) but not the opposite
to set the MaximumSize.

Is it possible to restrict  sizing of a docking window to a predefined max width?

Thanks for your help.

Best regards,

Senthil Kumaran Rajan [Syncfusion]
Replied On March 9, 2017 11:15 AM UTC

Hi Michael, 
Thank you for contacting Syncfusion support. 
We understand that your requirement is to set the fixed size for the dockingManager controls. If so, the reported requirement can be achieved by using the “SetFreezeResize” function or “FreezeResizing” property.  
SetFreezeResize – used to restrict the size of the particular dock window. 
FreezeResizing – Used to restrict the size for the whole docked window. 
Please make use of the below code example. 
Code Example[C#]: 
//To freeze resizing of all the control 
this.dockingManager1.FreezeResizing = true; 
//To restrict the size of the user control. 
this.dockingManager1.SetFreezeResize(this.userControl11, true); 
//To restrict size of panel1 
this.dockingManager1.SetFreezeResize(this.panel1, true); 
We have prepared a sample for your reference and this can be downloaded from the below location. 
Could you check with the above solution and let us know whether it is helpful? If not please share some additional details about the reported requirement. It will be help us to check and provide you a solution at the earliest. 

Michael Lohr
Replied On March 14, 2017 12:38 PM UTC

Hi Senthil,

Thanks a lot for your solution.
This works perfectly.

Best regards,

Senthil Kumaran Rajan [Syncfusion]
Replied On March 15, 2017 04:08 AM UTC

Hi Michael, 
Thank you for your update. 
We are glad to know that, your requirement has been achieved. Please let us know if you need any further assistance, we will be happy to assist you. 


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

or the page will be automatically redirected to 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