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 Generate random rows in dataset using c#.net

How to use Format function in Microsoft Dynamics Navision.