tags:

views:

18

answers:

2

Hello everyone In .NET Framework, there is only SplitContainer which contains 2 panels. I need a container which can contain multiple splitters and panels.

See my picture:

http://img413.imageshack.us/img413/4256/multisplitter.png

Please help me. Thanks.

+1  A: 

Why not nest the SplitContainers?

In the left panel of the main splitcontainer, you can add a split panel, and in the right panel you do the same. Then you have four columns (and auto sizing still works)

Grad van Horck
But I need a simple thing. Because the number of panels is flexible. I can add a panel or remove a panel when I need. Thanks.
Lu Lu
In that case you also start with one container, and (recursively) keep adding splitcontainers to the right panel. (Panel2), and in the last step just add the control(s) to the right panel.
Grad van Horck
A: 

If you are 'lazy' (or find this acceptable), you can simply place 1 & 2 in a splitter, then 3 & 4 in another, then place those 2 splitters in another splitter.

leppie