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

Docking manager - 2 left docking controls

Thread ID:

Created:

Updated:

Platform:

Replies:

18078 Aug 24,2004 02:39 AM Aug 24,2004 06:16 AM Windows Forms 3
loading
Tags: Tools
Stuart Turner
Asked On August 24, 2004 02:39 AM

Hi, I need to dock some tree controls as the user loads them and I am using: this.mainForm.appDockingManager.DockControl(ctrl, parent, DockingStyle.Left, ctrl.Bounds.Width); This then puts the two controls on the left side-by-side. I want the two controls to be on the left but on top of each other. How can I do this? I cannot use the design time editor. Cheers.

Administrator [Syncfusion]
Replied On August 24, 2004 03:06 AM

Hi Stuart, You can do that by docking the second control by specifying the first control as the parent and specifying the docking style as "Tabbed". this.mainForm.appDockingManager.DockControl(ctrl, parent, DockingStyle.Left, ctrl.Bounds.Width); this.mainForm.appDockingManager.DockControl(ctrl2, ctrl1, DockingStyle.Tabbed, ctrl2.Bounds.Width); Please let me know if you have any questions. Thanks. Best regards, Stephen. >Hi, > >I need to dock some tree controls as the user loads them and I am using: > >this.mainForm.appDockingManager.DockControl(ctrl, parent, DockingStyle.Left, ctrl.Bounds.Width); > >This then puts the two controls on the left side-by-side. I want the two controls to be on the left but on top of each other. How can I do this? I cannot use the design time editor. > >Cheers. > >

Stuart Turner
Replied On August 24, 2004 03:36 AM

Sorry, By on top of each other I mean one control is above the other i.e. the first tree is in the upper left hand corner and the other tree is in the bottom left hand corner but both trees are docked to the left. Each tree should take up half of the height of the main form. Thankyou.

Administrator [Syncfusion]
Replied On August 24, 2004 06:16 AM

Hi Stuart, Sorry for the confusion. You can dock the second control to the bottom of the first control and then specify the height. this.mainForm.appDockingManager.DockControl(ctrl, parent, DockingStyle.Left, ctrl.Bounds.Width); this.mainForm.appDockingManager.DockControl(ctrl2, ctrl, DockingStyle.Bottom, parent.Bounds.Height/2); Thanks, Stephen. >Sorry, > >By on top of each other I mean one control is above the other i.e. the first tree is in the upper left hand corner and the other tree is in the bottom left hand corner but both trees are docked to the left. >Each tree should take up half of the height of the main form. > >Thankyou. >

CONFIRMATION

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.

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.

;