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?
ADAdministrator Syncfusion Team April 1, 2004 03:11 PM
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.