Leo Vo
Leo Vo

Reputation: 10330

Multiple splitter control

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 http://img413.imageshack.us/img413/4256/multisplitter.png

Please help me. Thanks.

Upvotes: 2

Views: 5175

Answers (3)

BlueMonkMN
BlueMonkMN

Reputation: 25601

Use the Splitter control instead of the SplitContainer control. You can stack as many Splitters as you like without extra complications of nesting SplitContainer controls many levels deep.

Upvotes: 3

leppie
leppie

Reputation: 117260

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.

Upvotes: 0

Grad van Horck
Grad van Horck

Reputation: 4506

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)

Upvotes: 5

Related Questions