I have a form that is a child of an MDI form. When this form isn't maximized, it fits inside of the MDI form, below several menu panels and controls. It has a border, icon, and controlbox. When the form is maximized, the border shows directly underneath the main MDI form border. When it is maximized, the controlbox is disabled and we don't need the border for any reason- it just looks sloppy. The form is resized programmatically so there is never a need for the border/controls when it is maximized.
Is there a way to set the FormBorderStyle = None, ONLY when the form is maximized, and have FormBorderStyle = sizeable when it is any size other than Max?
See screenshots below, The red line is on the border that I want hidden- the area marked toolstrip controls is above the form, not actually on it. The white space marked picture box is the actual form that has the border. When not maximized, it the border will show directly above the picture box area and below the toolstrip area, and can be resized by the user. When maximized, the user cannot resize it, so I want to hide that border as it looks sloppy below the main form border
When Not maximized: [1]: https://i.stack.imgur.com/TFDjk.png
When Maximized: https://i.stack.imgur.com/EK4cY.png