I assume by numeric value you mean the RGB values associated with that
color.
The values should then be in the Color.R, Color.G and Color.B byte values.
If you need to convert them to hex you can do something like this:
ImageButton.BackColor.R.ToString("X2");
ImageButton.BackColor.G.ToString("X2");
ImageButton.BackColor.B.ToString("X2");
If you are pulling the color by name you might have to do this:
System.Drawing.Color myColor = System.Drawing.Color.FromName("DarkGray");
Hope that helps,
Kyle
"Jack Smith" <Ja***********@hotmail.com> wrote in message
news:#l**************@TK2MSFTNGP10.phx.gbl...
I am using Image button and its property backcolor = DarkGray.
How to find out the numeric value of this color?
Thanks,
Jack