Hi can anyone help me on how i can achieve this?
I want to have a real time result on two textbox.
double a, b, c, result;
if (txtPriceMetre.Text == "")
{
txtPriceMetre.Text = "0";
}
else
{
a = Convert.ToDouble(txtPriceMetre.Text);
}
if (txtLength.Text == "")
{
txtLength.Text = "0";
}
else
{
b = Convert.ToDouble(txtLength.Text);
}
if (txtPriceCut.Text == "")
{
txtPriceCut.Text = "0";
}
else
{
c = Convert.ToDouble(txtPriceCut.Text);
}
result = Convert.ToDouble((a * b) + c);
txtNetPrice.Text = Convert.ToString(c);
this is my code of my txtLength_Textchanged()
it's not working. can anyone help me?