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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change title bar font 1

Status
Not open for further replies.

jubble

Programmer
Mar 6, 2002
207
GB
Can the title bar font for a form be changed at run-time?

If the form font is changed then it changes the font of child controls but doesn't change the title bar.

Have done quite a bit of trawling on the net for this one and seems it can't be done through .Net managed code but surely there must be an API to do it?
 
It can and can't be done.

This link shows a "cheat" in VB 5/6 - but it should be pretty easy to convert.

The only other method I am aware of is by changing the values of:

(I presume)
CaptionHeight, CaptionWidth and CaptionFont at

HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics

However changes here will not just affect your program, they will affect the computer and could well upset your users.

The first solution is probably a better bet.


Hope this helps.

[vampire][bat]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top