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 make and use web service in Microsoft Dynamics Navision.

How to use Format function in Microsoft Dynamics Navision.

How to create simple report in Microsoft Dynamics Navision.