Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the look of the titlebar...

Status
Not open for further replies.

tomcoombs

Programmer
Aug 14, 2003
65
GB
I want to draw a custom title bar, is it possible as belive that part is controled by windows?

Could I just not display it some how and do my own look-a-like one. (I could do bordertype = none, but then you loose window resizing :-( )

Any body know how to get rid of the titlebar OR change its default look / colour with out changing the windows theme..?


Tom
 
not possible? come on guys what are your inital thoughts?

Tom
 
I think a Form is a system level control, like a MessageBox and DialogBox. I have seen an article about modifying a MessageBox by using hooks and the SendMessage API, but it wasn't straigh forward by any means.
 
If you just want it to disappear (I assume you mean the part of the form with an icon that currently says

"C# (C sharp): Microsoft - Changing the look of the titlebar... - Microsoft Internet Explorer"

on my computer), you can make it disappear by removing all text from the Form.Text Property and setting ControlBox to False. Then I guess you could paint your own on there somehow. It's not the cleanest way, but it might work for you...

Ben

There's no place like 127.0.0.1.
 
Thanks SHelton,


I compleated that part a while ago using exactly the same technique on that page.

Thanks Again

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top