I have this code:
int converted = Convert.ToInt32(value);
string hexValue = converted.ToString("X");
Color color = System.Drawing.ColorTranslator.FromHtml("#" + hexValue);
return color;
That get strings like "12222222" and converts them to C# colors. But I'm getting this string "255" and I don't know how to handle this. Can anyone shed some light on this strange number?
Thanks
Update Forgot to mention: in a demo project his function works with value="255". In my project - doenst.