469,917 Members | 1,862 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,917 developers. It's quick & easy.

Removing the Titlebar from Windows Form

Is it possible to remove the Titlebar from a Windows Form?

I know I can create a custom region to essentially "hide" the title
bar... but the only problem with that is the fact the the Width /
Height settings of the form aren't the actual width and height, and the
location defined in the properties of the form aren't the actual
location. (i.e. if I use a region that removes the titlebar, and I set
the form's location to (0,0), it will sit lower than 0,0).

Furthermore, it'd be nice if I could make a form that appeared
different actually appear different in design mode.

It seems all of these things are possible. Any clues?

Nov 17 '05 #1
2 17235
Setting FormBorderStyle = None will remove the title bar (at both design and
run time)

Alternatively if you need a border you can set ControlBox = false and Text =
""
which will have the same effect

"blesh" wrote:
Is it possible to remove the Titlebar from a Windows Form?

I know I can create a custom region to essentially "hide" the title
bar... but the only problem with that is the fact the the Width /
Height settings of the form aren't the actual width and height, and the
location defined in the properties of the form aren't the actual
location. (i.e. if I use a region that removes the titlebar, and I set
the form's location to (0,0), it will sit lower than 0,0).

Furthermore, it'd be nice if I could make a form that appeared
different actually appear different in design mode.

It seems all of these things are possible. Any clues?

Nov 17 '05 #2
blesh wrote:
Is it possible to remove the Titlebar from a Windows Form?

I know I can create a custom region to essentially "hide" the title
bar... but the only problem with that is the fact the the Width /
Height settings of the form aren't the actual width and height, and the
location defined in the properties of the form aren't the actual
location. (i.e. if I use a region that removes the titlebar, and I set
the form's location to (0,0), it will sit lower than 0,0).

Furthermore, it'd be nice if I could make a form that appeared
different actually appear different in design mode.

It seems all of these things are possible. Any clues?


Remove the control box and the Text (Caption) and it will appear with no
title bar.
--
Tom Porterfield
Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Xarky | last post: by
4 posts views Thread by Rod Gill | last post: by
9 posts views Thread by mohit.akl | last post: by
4 posts views Thread by =?Utf-8?B?T2xhbg==?= | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.