Click here to Skip to main content
15,894,013 members
Articles / Desktop Programming / Windows Forms

Drawing smooth text and pictures on the extended glass area of your WinForm in Windows Vista

Rate me:
Please Sign up or sign in to vote.
4.71/5 (60 votes)
10 Jul 2008GPL34 min read 475.7K   7K   163  
This article tells you how to draw text and pictures correctly on your Vista form's extended glass area.
using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace textonglass
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Software Developer
China China
Pang is experienced in developing IM system, distributed backend caching & storage system for large scale internet services. He also has a broad interest in playing around all kinds of programming stuff, like hacking, UI programming. He's current project is MSNPSharp, a C# implementation of MSNP API library which allows you to develop your own MSN client and bot. Please see http://code.google.com/p/msnp-sharp/

Comments and Discussions