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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Docking two windows on the left one on top of the other

Thread ID:





62665 Jun 20,2007 07:30 AM UTC Jun 20,2007 09:21 AM UTC WinForms 1
Tags: Tools
Dan Searle
Asked On June 20, 2007 07:30 AM UTC

I have a form with a docking manager control on it and two panels.

I am setting the docking position of the panels within my InitializeDockingWindows method as follows.

dockingManager.DockControl(panel1, this, DockingStyle.Left, 200);
dockingManager.SetAutoHideMode(panel1, false);
dockingManager.SetDockLabel(panel1, "Panel1");

dockingManager.DockControl(panel2, this, DockingStyle.Left, 200);
dockingManager.SetAutoHideMode(panel2, false);
dockingManager.SetDockLabel(panel2, "Panel2");

What I'm trying to achieve is having the two panels docked on the left with one below the other. (see below)

o o o
o o o
o o o
o A o o
o o o
o o o
o o o
ooooo o
o o o
o o o
o B o o
o o o
o o o

How can I achieve this? Is there some way to place the panels on my form at design time and make this the default docking behaviour or should my code in InitializeDockingWindows be different?

Any advice would be a big help.

Dan Searle
Replied On June 20, 2007 09:21 AM UTC

Found the answer now, I needed to set the parent control ref in the call to dock the second panel to be the first panel.


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

or the page will be automatically redirected to 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