Hello guys im having problem displaying a math equation result in the textbox. It shows 0 and i dont really know where i got the error.
Name of the textbox where result shall be displayed is total1
Thx for help :)
int textboxnumber1;
int textboxnumber2;
int textboxnumber3;
int textboxnumber4;
textboxnumber1 = int.Parse(textBox7.Text);
textboxnumber2 = int.Parse(textBox10.Text);
textboxnumber3 = int.Parse(textBox18.Text);
textboxnumber4 = int.Parse(textBox34.Text);
int answer1 = 0;
answer1 = textboxnumber1 + textboxnumber2 + textboxnumber3 + textboxnumber4;
total1.Text = answer1.ToString();