Windows Form with Resizing Frame and no Title Bar?

点点圈 提交于 2019-12-08 21:30:25

问题


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.



来源:https://stackoverflow.com/questions/93716/windows-form-with-resizing-frame-and-no-title-bar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!