42

In order to make a form non-resizable I have set MaximumSize and MinimumSize to the same value.

The problem I have is that when the user points to the border of the form, the mouse pointer changes so that it look as though the form is resizable. Is is possible for this not to happen?

1

8 Answers 8

84

Set Form.FormBorderStyle to something else than Sizable.

1
  • Set Form.FormBorderStyle = FormBorderStyle.FixedSingle should be the correct answer. There's one possible FormBorderStyle named SizableToolWindow which will result to a form still sizable but with no maximum/minimum button. Oct 5, 2020 at 7:55
30

Use this:

this.FormBorderStyle = FormBorderStyle.FixedSingle; 
1
  • This should be the actual answer.
    – Hemal
    Feb 9, 2017 at 4:28
4

"Set Form.FormBorderStyle to something else than Sizable" is not enough, need to set MaximizeBox = False, or user can change form size by maximum it

1
  • By setting MaximizeBox at False you deactivate the maximize button on the top right corner I suggest to do this AND to set Form.FromBorderStyle to FixedDialog
    – Jacques R
    Jul 6, 2021 at 10:44
2

[...] FormBorderStyle.FixedDialog border style changes the border of the form to that of a dialog box and prevents the form from being resized. [...]

http://msdn.microsoft.com/en-us/library/system.windows.forms.form.formborderstyle.aspx

0
2

If you desire to set this in designer under Appearance there is a field to set FormBorderStyle this can be changed to something that starts out with Fixed*.

1

to make a form not resizable just change the property: FormBorderStyle to anything but not Resizable.

1

Just go under misc and change sizeable to false.

0
formName.FormBorderStyle = FormBorderStyle.FixedSingle; 
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.