3-pane explorer: docking existing split container in new split container

I would like to create a 3-pane explorer-type form. The upper part of the form will be the standard split container with a TreeView on the left and ListView on the right. The lower part of the form will contain additional information about the item selected in the upper part. The best way to do this seems to be to have a split container with a horizontal divider, and dock another split container (with the default vertical divider) in the upper half.

I know I can create this from scratch in by designer mode, but the Explorer Form template gives me almost all I need, and I would like to start from that. The only thing I need to change is to add a split container with a horizontal divider and then dock the Explorer Form's existing split container in the upper part of my new container.

I can change the dock property of the split container to "None", and then drag the lower edge of the form down to make room below the split container. I can drag a new split container into the space I made, and change the divider to horizontal. But how do I take the original split container and dock it in the upper part of my new split container? I expected to see something like a "Parent " property that could be set to show which container a control is docked in, but I can't find one. Am I going about this in the wrong way?

[1372 byte] By [Blackwood] at [2007-12-24]
# 1

Hi,

there's a tool window in Visual Studio 2005 called Document Outline, which will help you visualy arrange controls on your form, including "parenting" and z-order. To access this window, use View | Other Windows | Document Outline from the main menu or Ctrl+Alt+T keyboard shortcut.

Hope this helps,

Andrej

AndrejTozon at 2007-10-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 2
Or you could just drag'n drop the control into the split-pane you wish to add it to.
omron at 2007-10-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 3
Thanks Andrej. I hadn't noticed that window before. It does make it easy to move the componants and containers around.
Blackwood at 2007-10-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 4

omron wrote:
Or you could just drag'n drop the control into the split-pane you wish to add it to.

Thanks omron. I had tried to drag and drop, but the problem was that I couldn't select the split container to drag it because of the other components that were "filling" it. After reading your post, I did go back and find that I could set up a new split container, undock the TreeView and ListView from the original split container and then drag them to the new one.

Blackwood at 2007-10-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 5

If you right click inside the splitpanel on any control or even a blank area you can select the entire splittercontrol.
Then you can drag and drop it.

Or you can select it from the dropdown list in the Property window.

omron at 2007-10-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...