H
Harry
Hi,
I wonder whether anyone could help me to do a maths calculation?
I have three boxes which take numeric values
double PPrice = Convert.ToDouble(txtPurchasePrice.Text);
double BCost = Convert.ToDouble(txtBuildCost.Text);
double Morg = Convert.ToDouble(txtMortgage.Text);
As each box has lostfocus/validating, the amount to be placed in a textbox
adding to it the
previous amount, so giving a running total.
I have tried to add (PPrice + BCost-Morg); but keep getting errors.
I do, however, get it to work when I use " StreamWriter" and write to a text
file, but it
will not give me a total on the screen.
I would be most appreciative if you would be good enough to show me how this
can be
done.
Harry
I wonder whether anyone could help me to do a maths calculation?
I have three boxes which take numeric values
double PPrice = Convert.ToDouble(txtPurchasePrice.Text);
double BCost = Convert.ToDouble(txtBuildCost.Text);
double Morg = Convert.ToDouble(txtMortgage.Text);
As each box has lostfocus/validating, the amount to be placed in a textbox
adding to it the
previous amount, so giving a running total.
I have tried to add (PPrice + BCost-Morg); but keep getting errors.
I do, however, get it to work when I use " StreamWriter" and write to a text
file, but it
will not give me a total on the screen.
I would be most appreciative if you would be good enough to show me how this
can be
done.
Harry