Breaking News
Loading...
Wednesday 12 December 2012

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@\/  <(.'.)>

0 comments:

Post a Comment

Thanks for comment

 
Toggle Footer