I'm working with a Windows Forms application where I have a main form (MainForm) with IsMdiContainer = true and FormBorderStyle = None. On the left side, I have a Panel with a MenuStrip, and at the top, I have a custom ControlBox containing buttons for actions like close, maximize, and minimize.
My issue is with the behavior of child forms inside this main form:
- When I maximize a child form, I want it to appear underneath both the left panel and the top control box.
- When I minimize a child form, I don't want it to hide under the left panel or menu.
- How can I achieve this behavior, keeping the panels always visible and preventing them from being covered by maximized or minimized forms?