Windows Develop Bookmark and Share   
 index > Windows Forms General > SplitContainer panel collection
 

SplitContainer panel collection

Playing around with the new controls and am wondering why the SplitContainer is fixed to 2 panels/1 split.  Wouldn't it make sense to allow the addition of a collection of panels that have splitters between them?  It may make resizing a little harder but not too much.
au55ie  Tuesday, July 26, 2005 3:02 PM
You can always add another SplitContainer in the panel of the first one to achieve that.

I think this two panel restriction is a cleaner design, because each SplitContainer can have a horizontal or vertical splitter, and you can design deeply nested splits this way, which would be hard to do if a SplitContainer had >2 panels.

+----------------------------------+
|                1        3        |
|                1        344444444|
|                1        3        |
|                1        3        |
|                122222222222222222|
|                1                 |
|                1                 |
|                1                 |
|                1                 |
|                1                 |
+----------------------------------+

(the numbers represent one splitter)
Daniel Rieck  Tuesday, July 26, 2005 4:30 PM
You can always add another SplitContainer in the panel of the first one to achieve that.

I think this two panel restriction is a cleaner design, because each SplitContainer can have a horizontal or vertical splitter, and you can design deeply nested splits this way, which would be hard to do if a SplitContainer had >2 panels.

+----------------------------------+
|                1        3        |
|                1        344444444|
|                1        3        |
|                1        3        |
|                122222222222222222|
|                1                 |
|                1                 |
|                1                 |
|                1                 |
|                1                 |
+----------------------------------+

(the numbers represent one splitter)
Daniel Rieck  Tuesday, July 26, 2005 4:30 PM
True this could be done, however what if you want 3 panels in the same direction and evenly split them.  You could do this with nesting a SplitContainer in a SplitContainer, but it wouldn't be as nice a solution.
au55ie  Wednesday, July 27, 2005 8:27 AM

You can use google to search for other answers

Custom Search

More Threads

• Accessing objects of a Form from another Form in VB .net
• DrawEllipse small bug
• BalloonTip function not working...
• Error occured during creating a form
• Large image slow refresh transparency control
• How-To: Incremental Search ComboBox
• How to identify if the Process has completed a task?
• Form Design Resources
• Behaviour of system.configuration.providerbase in a winforms application
• Minimize to Tray Window Form button.