How can I hide the title bar from a Windows Form but still have a Resizing Frame?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Setting FormBorderStyle = None will remove the title bar (at both design and run time) - and also remove your ability to resize the form.
If you need a border you can set:
ControlBox = false
Text = ""
回答2:
Set the ControlBox property of the form to False, and the Text property to empty string. The form will open with no perceivable (to the user) title bar, but they will be able to resize the form.