Click here to Skip to main content
12,952,398 members (39,218 online)
Click here to Skip to main content
Add your own
alternative version


9 bookmarked
Posted 17 Aug 2013

Yet Another Color Picker for C#, VB.NET WinForm

, 17 Aug 2013 CPOL
Rate this:
Please Sign up or sign in to vote.
An Office 2010 Style Color Picker for .NET WinForm.


An alternative of color picker control for C#, VB.NET WinForm's color dialog. 

There is currently only 1 style in this project. If you have some other color picker that would like to share, you may join this project at

About the control

Another rebuild Office 2010 Style color picker.


Three components are built based on Office 2010 Style color picker:

  • ThemeColorPicker - Used in WinForm
  • ThemeColorPickerWindow - A small pop-up tool box
  • ThemeColorPickerToolStripButton - A ToolStripButton used in Tool Strip Control

Using the control 

Add a reference of ThemeColorPicker into your project. 


  1. If you add the source code directly into project, ThemeColorPicker should appear at the ToolBox.
  2. However, if you can't the it at ToolBox, you can try drag n drop the DLL into the ToolBox.
  3. Then, drag and drop it from ToolBox into WinForm.
  4. If you can't drag and drop from ToolBox, you can manually add it in the Form's Designer.cs file.
  5. Double click on the control to create/handle the event of ColorSelected

public partial class Form1 : Form
    public Form1()

    private void themeColorPicker1_ColorSelected(object sender, ColorSelectedArg e)
        this.BackColor = e.Color;


This component is created dynamically in codes. 

private void button1_Click(object sender, EventArgs e)
    Point pt = this.PointToScreen(button1.Location);
    ThemeColorPickerWindow f = new ThemeColorPickerWindow(
    f.ColorSelected += new ThemeColorPickerWindow.colorSelected(f_ColorSelected);

void f_ColorSelected(object sender, ColorSelectedArg e)
    this.BackColor = e.Color;


You can see a new option of adding a ThemeColorPickerToolStripButton at the tool strip:

Handle the ColorSelected event at code behind:

public Form1()
    themeColorPickerToolStripButton1.ColorSelected += new ThemeColorPickerToolStripButton.colorSelected(themeColorPickerToolStripButton1_ColorSelected);

void themeColorPickerToolStripButton1_ColorSelected(object sender, ColorSelectedArg e)
    this.BackColor = e.Color;


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer
Malaysia Malaysia
Writing programs is an art.

You may also be interested in...

Comments and Discussions

GeneralMy vote of 5 Pin
Sami Jildeh27-Oct-14 6:39
memberSami Jildeh27-Oct-14 6:39 
GeneralMy vote of 5 Pin
manoj kumar choubey19-Aug-13 19:36
membermanoj kumar choubey19-Aug-13 19:36 
GeneralMy vote of 5 Pin
Florian Rappl18-Aug-13 1:25
mvpFlorian Rappl18-Aug-13 1:25 
GeneralMy vote of 5 Pin
thefiloe17-Aug-13 22:36
memberthefiloe17-Aug-13 22:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170525.1 | Last Updated 18 Aug 2013
Article Copyright 2013 by adriancs
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid