Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2291
  • Last Modified:

How do I change the Form1 titlebar font?

In a simple Visual Studio WinForm application, the title bar text of Form1 is displayed with a Sans Serif 8.25 font. It is true that the properties window lets you specify a new title (such as "My New Title"). The properties window also lets you change the font. BUT WAIT: The actual title bar text font DOES NOT CHANGE -- the only thing that changes is that when you drag a new control on the Form1 (such as a Label), the new font is used for that control -- the title bar remains the same.

Is there any way to change the font for the titlebar text?  
0
chaffinsjc
Asked:
chaffinsjc
  • 2
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
The font is controlled by SYSTEM WIDE settings that affect ALL windows.

So your choices are:
(1) Change the settings at the OS level (not recommended)
(2) Get down and dirty and draw the non-client area yourself when the WM_NCPAINT message is received:
http://msdn.microsoft.com/en-us/library/dd145212(VS.85).aspx

Unfortunately with #2 you can't just tell it to use XXX font...you have to manually draw the text yourself with manually computed values.
0
 
chaffinsjcAuthor Commented:
So sad. But I think it's only fair to award the points: it's not your fault the solution is not realistic. Thank you -- I'll stop trying to do this.
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
If you want to go that route, and don't want to manually implement just that feature, then I suggest you search for a "skinning" solution.  There are lots out there...but then you end up customizing just about everything about the "look and feel" of your app.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now