How to

get color input from user using ColorDialog

Published: 14. December 2008 | Updated: 21. October 2011
License: Microsoft Public License (MS-PL)
Categories: GDI, Winforms
Tags: C# Colors Winforms
Was this snippet helpful for you? YESYES / NONO
Get Analyzant!

Check your entire website from code to content in minutes with Analyzant, the free analysis suite.

Free download at
ColorDialog dialog = new ColorDialog();
dialog.FullOpen = true;

DialogResult result = dialog.ShowDialog();

if (result == DialogResult.OK)
    Color color = dialog.Color;
Send us feedback about this snippet »

Related Snippets: