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


Thread ID:





73380 May 5,2008 10:23 AM UTC May 12,2008 03:06 PM UTC WinForms 2
Tags: Tools
Eric Ferro
Asked On May 5, 2008 10:23 AM UTC

I want to limit the dock ability of a control to the left and right side.
So i do this :

this.dockingManager1.SetDockAbility(this.groupBar1, DockAbility.Right | DockAbility.Left);

But the control can still be dock anywhere.
Why ?

Administrator [Syncfusion]
Replied On May 9, 2008 06:57 AM UTC

Hi Eric,

Thank you for using Syncfusion products.

You can use SetOuterDockAbility method instead of SetDockAbility. The following code snippet is used to dock the control only to the right.

dockingManager1.SetOuterDockAbility(this.panel1, Syncfusion.Windows.Forms.Tools.DockAbility.Right);

Please refer the below sample that illustrates the same.


Please let me know if this helps you.


Eric Ferro
Replied On May 12, 2008 03:06 PM UTC

Works perfectly.


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