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

How to programmatically position a dockable window

Thread ID:





4378 May 9,2003 08:49 AM UTC May 15,2003 12:08 AM UTC WinForms 1
Tags: Tools
Koen Gullentops
Asked On May 9, 2003 08:49 AM UTC

Hi, I try to position 2 dockable windows and 1 dockingClientPanel like this: dock window on the left, client panel in the middle and dock window on the right. When I add the second dockable window to the form (at runtime) it places itself always next to the left dockable window and not on the right of mine main window. I have set the location, dock and anchor property The dockingClientPanel it's sizeToFit property is set to true. Thanks, Koen

Prakash S [Syncfusion]
Replied On May 15, 2003 12:08 AM UTC

Hi Koen, The Control class properties such as Location, Anchor and Dock have no bearing on controls enabled for docking through the Essential Tools docking windows framework. Looks like you are using the DockingManager.SetEnableDocking(Control, bool) method to set up your layout. SetEnableDocking will always dock the control at the default left border. For specifying dock positions, you will have to use the DockingManager.DockControl(...)/FloatControl(..) set of functions. The Essential Tools 'Docking Package\SimpleCode' sample demonstrates setting up a docking layout programmatically. Looks like you have certain specific needs that entail you to use the programmatic approach. If not, then the easiest way to create and set up your docking layout would be through the docking windows designer. Prakash Syncfusion, Inc.


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

Live Chat Icon For mobile
Live Chat Icon