How do I change the Form1 titlebar font?

Posted on 2010-01-01
Last Modified: 2012-05-08
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?  
Question by:chaffinsjc
    LVL 85

    Accepted Solution

    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:

    Unfortunately with #2 you can't just tell it to use XXX have to manually draw the text yourself with manually computed values.

    Author Closing Comment

    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.
    LVL 85

    Expert Comment

    by:Mike Tomlinson
    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now