views:

2507

answers:

2

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

+2  A: 

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 = ""
Brian Gillespie
One side effect of this solution is that by setting Text="" for the form, you get no title in the Taskbar.
Brian Gillespie
Another side effect is that the border is no longer themed.
Fantius
A: 

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.

Nikki9696