
------解决思路----------------------
手动判断简单点
------解决思路----------------------
double d;
if (double.TryParse(this.textBox1.Text, out d) && d < 0.2)
{
this.textBox1.ForeColor = Color.Red;
}
double d;
if (double.TryParse(this.textBox1.Text, out d) && d < 0.2)
{
this.textBox1.ForeColor = Color.Red;
}