Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Form with Resizing Frame and no Title Bar?

How can I hide the title bar from a Windows Form but still have a Resizing Frame?

like image 475
Brian Gillespie Avatar asked Sep 18 '08 15:09

Brian Gillespie


2 Answers

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 = ""
like image 147
Brian Gillespie Avatar answered Sep 21 '22 03:09

Brian Gillespie


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.

like image 40
Nikki9696 Avatar answered Sep 24 '22 03:09

Nikki9696