Click here to Skip to main content
15,897,371 members
Articles / Programming Languages / C#

Fully themed Windows Vista Controls

Rate me:
Please Sign up or sign in to vote.
4.91/5 (60 votes)
16 Jun 2007Ms-PL9 min read 323.6K   7.8K   226  
Render Windows Controls fully (with special fade effects) in Windows Vista
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace VistaControlsCodePj
{
    public partial class About : Form
    {
        public About()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void About_Load(object sender, EventArgs e)
        {
            LinkLabel.Link la_ = new LinkLabel.Link();
            la_.Start = "View the ".Length;
            la_.Length = "CodeProject Article".Length;
            la_.Name = "CPjA";
            this.linkLabel1.Links.Add(la_);
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            switch (e.Link.Name)
            {
                case "CPjA":
                    try
                    {
                        VisitLink();
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.Message);
                    }
                    break;
            }
        }
        private void VisitLink()
        {
            System.Diagnostics.Process.Start("http://www.codeproject.com/useritems/themedvistacontrols.asp");
        }

    }
}

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 Microsoft Public License (Ms-PL)


Written By
Software Developer
Singapore Singapore
My other projects at Onfry

Comments and Discussions