I have a Winforms project with a form in it that is maximized (this.WindowState = System.Windows.Forms.FormWindowState.Maximized
).
When the user drags the form by its border to move the form around, it resizes to the size that I have set (which is not the maximum screen size since I do not know exactly to which values to set the MinimumSize
property for it to be maximized on every screen).
I do not want this behaviour. I just want the form to stay maximized. I have set the FormBorderStyle
to FixedDialog
, so that the user can not resize the form by dragging the borders. I have tried to re-set the maximized window state in all kinds of events, but they do not seem to work.
Does anyone know how to fix this?