How to get color name in C#.Net

ColorDialog cd = new ColorDialog();
            cd.AllowFullOpen = false;
            cd.ShowHelp = true;
            if (cd.ShowDialog() == DialogResult.OK)
            {
                Color c = cd.Color;

                if (c.IsNamedColor)
                {
                    MessageBox.Show(c.Name);
                }
            }


/////////////////  OUTPUT   ////////////////




--
/\/ir@\/  <(.'.)>

Comments

Popular posts from this blog

How to use serial.write() in Arduino.

How to make and use web service in Microsoft Dynamics Navision.

How to Generate random rows in dataset using c#.net