如何在vb.net中为用户创建一个不大的表单 [英] How to make a form un-sizable for the user in vb.net
问题描述
我已经看过几个已经指示将样式设置为固定的答案,但我不能因为我的表单的性质,我希望我的表单看起来像这样示例 [ ^ ],我目前通过以下方式实现这一目标:
ControlBox = False
FormBorderStyle =大小
MaximizeBox = False
MinimizeBox = False
它运作完美但允许用户重新调整表格大小,有没有办法停止用户重新调整表单的大小,我目前正在使用将表单最小大小和最大大小设置为相同大小的方法,但是当悬停在边框上时仍显示重新调整大小的光标,如何停止这个?
感谢你的帮助
I''ve looked at several answers already that instruct to just set the style to fixed but I can''t due to the nature of my form, I want my form to look like this example[^], I''m currently achieving this by the following:
ControlBox = False
FormBorderStyle = Sizable
MaximizeBox = False
MinimizeBox = False
It works perfect but allows the user to re-size the form, is there a way to stop the user re-sizing the form, I''m currently using the method of setting the form minimum size and maximum size to the same size, but this still shows the re-size cursor when hovering over the border, how do I stop this?
Thanks for any help
推荐答案
一个快速的老板可以给你答案:
http://stackoverflow.com/questions/5169131/c-making-a-form-non-resizable [<一个href =http://stackoverflow.com/questions/5169131/c-making-a-form-non-resizabletarget =_ blanktitle =New Window> ^ ]
多多 here [ ^ ]
A quick earch sould give you the answer:
http://stackoverflow.com/questions/5169131/c-making-a-form-non-resizable[^]
lots more here[^]
添加以下内容:
Add these:
SizeGripStyle = Hide
'FormBorderStyle = FixedSingle
'or
FormBorderStyle = FixedToolWindow
这篇关于如何在vb.net中为用户创建一个不大的表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!