禁用Windows窗体表单的大小调整 [英] Disable resizing of a Windows Forms form
本文介绍了禁用Windows窗体表单的大小调整的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何关闭用户调整Windows Forms窗体大小的功能?
How do I turn off the user's ability to resize a Windows Forms form?
我要在单击时调整其大小。
I'm having it resize itself on a click.
推荐答案
form1.FormBorderStyle = FormBorderStyle.FixedSingle;
您可能还希望删除最小化和最大化按钮:
You may also want to remove the minimize and maximize buttons:
form1.MaximizeBox = false;
form1.MinimizeBox = false;
这篇关于禁用Windows窗体表单的大小调整的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文