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. Image for the cookie policy date
close icon

SetDockAbility

Hi
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 ?


2 Replies

AD Administrator Syncfusion Team 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.

[C#]
dockingManager1.SetOuterDockAbility(this.panel1, Syncfusion.Windows.Forms.Tools.DockAbility.Right);

Please refer the below sample that illustrates the same.

http://websamples.syncfusion.com/samples/Tools.Windows/F73380/main.htm

Please let me know if this helps you.

Regards,
Jaya



EF Eric Ferro May 12, 2008 03:06 PM UTC

Works perfectly.


Loader.
Live Chat Icon For mobile
Up arrow icon