Winforms form layout not working as expected

I have a Winforms form that is laid out like the image below. I'm having difficulties getting the thing to be responsive and have the controls expand and contract correctly.

The maroon boxes are panels that are docked top and bottom.
The purple and blue boxes are panels docked Bottom.
The orange boxes is contained inside the purple panel and is docked Left.
The green box is contained inside the purple panel and is docked Fill.
The brown boxes are contained inside the green panel and docked Bottom and Fill.

The bottom maroon panels stay fixed, like it should, however, the top maroon panel grows in height. The purple and blue panels grown in width but not in height. And the orange panel doesn't grow at all, however the green and brown panels grow in width only.

Apparently I'm not doing this correctly, it doesn't stretch quite like I thought it would.

I'm kind of new at this Winforms layout stuff, been doing web development for too long.


Before publish update: I figured it out, already, I needed to make the blue panel Fill also. Now everything works as expected, this will be deleted once it is published.
layout.png
LVL 27
Eddie ShipmanAll-around developerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Russ SuterCommented:
For controls that you want to grow and shrink with their parent containers, you need to use the Anchor property rather than the dock property. If you want multiple controls to grow proportionally then you'll have to handle the resize event manually and do some calculations.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Eddie ShipmanAll-around developerAuthor Commented:
If I set the Anchors, the controls "disappear" in the designer.
0
Eddie ShipmanAll-around developerAuthor Commented:
good
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.