Click here to Skip to main content
15,905,419 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i would like to add split container header and buttons, pin , close etc. anything out there with this functionality?
Posted

There are no built in controls to do that, you need to create your own
 
Share this answer
 
Of course you can do it, in two levels of hierarchy.

First, create a split container splitting some parent control into top and bottom parts. Use one of them for your buttons. Put another split container in the other part, to split it into left and right parts. In both cases, use the property Dock value "Fill". Problem solved.

However, I doubt you need to make both splits resizeable. You may consider different thing.

I will assume that the split between button parent and the rest content is fixed, just because you need a fixed-height buttons. Put a button in your parent control (Form or Panel) and give it a fixed size by using the property Dock value "Top" or "Bottom", use it to place your buttons; the rest of the area use to put a split container, with "Fill", use it for split into left and right areas.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900