Prgrammatically docking panels

Hello,

I am using Syncfusion 6.1.0.34 and I'm wordering if there is a way to programmatically dock 2 panels to the left-hand side of the form I'm in. I'd like to avoid using auto-generated code where possible. I've attached a picture of what it "should" look like. Thanks for your help!



panel_docking_882fdfb3.zip

3 Replies

AD Administrator Syncfusion Team August 19, 2008 11:22 AM UTC

Hi Andy,

Thank you for your interest in Syncfusion Products.

Docked control can be docked to any of the four sides of the container control. i.e., to Left, Right, Top and Bottom. DockingManager lets you specify the type of docking and the bounds of the docked control using the DockControl method.

Please refer the below code.

[C#]
this.dockingManager1.DockControl(this.panel1, this, Syncfusion.Windows.Forms.Tools.DockingStyle.Left,100);
this.dockingManager1.DockControl(this.panel2, panel1 , Syncfusion.Windows.Forms.Tools.DockingStyle.Bottom,200);

Please refer the tutorial link for more detail.
http://www2.syncfusion.com/ug_63/toolswin/DockingStyle.html

Please refer the simple sample for your reference.
http://websamples.syncfusion.com/samples/Tools.Windows/F75964/main.htm

Please let me know if any concerns.

Regards,
Hema




AC Andy Chan August 19, 2008 03:32 PM UTC

Thank you very much, this is exactly what I was looking for!



AD Administrator Syncfusion Team August 20, 2008 04:08 AM UTC

Hi Andy,

Thank you for the update.

Regards,
Hema


Loader.
Up arrow icon