0

I would like my win forms panels to stay at the top of the window when I maximise the form like it is when it's minimised.

This is the window when it's minimised (How I want it to be when I maximise) https://i.stack.imgur.com/VYrhS.jpg

I have tried the solution's provided on this thread Center Controls when form is Maximized

The white panel is anchored to Top, Left and the Gray panel is Top, Right https://i.stack.imgur.com/p7M7r.jpg

The white panel is anchored to Top, Left, Right and the Gray panel is anchored to Top, Right, Left. The panels end up over lapping https://i.stack.imgur.com/3ncmk.jpg

The panels have no anchor and stay in the same place. https://imgur.com/F37UDXy

How would I set the panels to be formatted the same maximised as they are when the window is minimised

KielanT
  • 11
  • 3
  • 1
    Use a `TableLayoutPanel` having two columns and one row. Set the column size mode on percent and set them to occupy 50%. Set the `Dock` property of `TableLayoutPanel` to fill. – Reza Aghaei May 05 '19 at 18:35
  • 1
    See a description of what Reza Aghaei suggested here: [How can I link a component's Size to the Window size?](https://stackoverflow.com/a/55829513/7444103), – Jimi May 06 '19 at 05:44

0 Answers0