Closed xamgore closed 8 years ago
backColor = ControlPaint.Light(backColor, float.Parse("0.25"));
Seems that is not the best idea to parse floats, cause there are various cultural formats.
I get a FormatException every time mouseOver event occures, read detailed log here.
My solution is to change float.Parse("0.25") to 0.25f.
float.Parse("0.25")
0.25f
Great, simple fix. +1.
Great,Post. & fix it.
Seems that is not the best idea to parse floats, cause there are various cultural formats.
I get a FormatException every time mouseOver event occures, read detailed log here.
My solution is to change
float.Parse("0.25")
to0.25f
.