Brian Gillespie
Brian Gillespie

Reputation: 3273

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?

Upvotes: 8

Views: 17383

Answers (2)

Nikki9696
Nikki9696

Reputation: 6348

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.

Upvotes: 2

Brian Gillespie
Brian Gillespie

Reputation: 3273

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 = ""

Upvotes: 12

Related Questions