get color input from user using ColorDialog
Published: 14. December 2008 | Updated: 21. October 2011License: Microsoft Public License (MS-PL)
Categories: GDI, Winforms
Tags: C# Colors Winforms
ColorDialog dialog = new ColorDialog(); dialog.FullOpen = true; DialogResult result = dialog.ShowDialog(); if (result == DialogResult.OK) { Color color = dialog.Color; MessageBox.Show(color.Name); }
| Send us feedback about this snippet » |





