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 get column value from the selected row in data grid in wpf c#.net

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

How to use Format function in Microsoft Dynamics Navision.