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

Docking multiple controls by "stacking"

Thread ID:





12548 Apr 1,2004 06:35 PM UTC Apr 1,2004 08:11 PM UTC WinForms 1
Tags: Tools
Administrator [Syncfusion]
Asked On April 1, 2004 06:35 PM UTC

In the designer, it''s possible to dock multiple controls vertically; that is, on top of each other. You can do this by adding a bunch of controls to the form, then dragging them to one side. When dragged and if positioned correctly (aim for the title bar of the docked control), the outlining rectangle will occupy about one-half the vertical space of the host control and be equally wide. Is there a programmatic way to do this?

Administrator [Syncfusion]
Replied On April 1, 2004 08:11 PM UTC

Hi Feminella, It is possible tp programmatically create any docking layout that can be created using the designer. You could dock two controls as per your specifications above by using this code below : this.dockingManager1.DockControl(this.panel1, this, DockingStyle.Left, 150); this.dockingManager1.DockControl(this.listBox1, this.panel1, DockingStyle.Bottom, 150); Assume that panel1 and listBox1 are two controls that you wish to dock. A complete sample illustrating this is attached here. Please refer to the sample and let me know if you need any additional information. Regards, Guru Patwal 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