Disable resizing of a Windows Forms form

后端 未结 5 658
耶瑟儿~
耶瑟儿~ 2020-12-07 10:27

How do I turn off the user\'s ability to resize a Windows Forms form?

I\'m having it resize itself on a click.

5条回答
  •  暖寄归人
    2020-12-07 11:18

    Another way is to change properties "AutoSize" (set to True) and "AutosizeMode" (set to GrowAndShrink).

    This has the effect of the form autosizing to the elements on it and never allowing the user to change its size.

提交回复
热议问题