How can I hide the title bar from a Windows Form but still have a Resizing Frame?
Asked
Active
Viewed 1.7k times
8

Ricardo Altamirano
- 14,650
- 21
- 72
- 105

Brian Gillespie
- 3,213
- 5
- 27
- 37
-
C#, Microsoft Visual Studio 2005 – Brian Gillespie Sep 19 '08 at 16:29
-
1perfect answer here https://stackoverflow.com/a/39598230/5574962 – 3per Oct 04 '19 at 01:27
2 Answers
12
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
- 3,213
- 5
- 27
- 37
-
2One side effect of this solution is that by setting Text="" for the form, you get no title in the Taskbar. – Brian Gillespie Sep 19 '08 at 16:30
-
1
-
1You can get a themed-border by setting `FormBorderStyle = FormBorderStyle.SizeableToolWindow;` – Cypher Nov 04 '13 at 20:31
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.

Nikki9696
- 6,260
- 1
- 28
- 23