;کدم حرفه ای نیست .یکجا از کدم ایراد داره چون اصلا اعشاری حساب نمیکنه ، یعنی وقتی اعشاری وارد میکنم خطا میده لطفا چکار کنم کدم حرفه ای و بدون خطا بشه؟؟؟
double i, j;
private void textBox1_TextChanged(object sender, EventArgs e)
{
double.TryParse(this.textBox1.Text, out i);
if (this.textBox1.Text == "")
{
i=0;
this.textBox1.Text = i.ToString();
}
else
{
this.textBox3.Text = (i + j).ToString();
}
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
double.TryParse(this.textBox2.Text,out j);
if (this.textBox2.Text == "")
{
j=0;
this.textBox2.Text =j.ToString();
}
else
{
this.textBox3.Text = (i + j).ToString();
}
}