privatevoidtextBox2_TextChanged(objectsender,EventArgse){Decimallength=Decimal.Parse(... private void textBox2_TextChanged(object sender, EventArgs e)
{
Decimal length =Decimal.Parse(textBox1.Text.Trim());
Decimal width = Decimal.Parse(textBox2.Text.Trim());
textBox3.Text = Convert.ToString(length*width);
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Text = "";
textBox2.Text = "";
textBox3.Text = "";
}
我就是输入小数也是同样的错误