I have 2 panels on a winform. How can I maximize Panel2 when I maximize the winform?
I have tried anchoring Panel1 to Top and Left, and anchoring Panel2 to all margins (Top, Bottom, Left and Right).
But this way, Panel1 remains fixed but Panel2 didn’t resize when the winform is maximized!
Is there any way to fix this problem or is it possible to maximize Panel2 alone with code?
Add panel1 docked to the top then add panel2 with dock type set to “fill”