i have two text box.
company cost 1000
tax 100
total i want 1100
how to do please help me
Adding two numbers in csharp
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Abdur RehmanRank #2,540 · 545 pointsPosted Mar 9, 2012, 2:52 AM EST
int y=int.Parse(txtbox2.text);
int total=x+y;
txtbox3.text=total.tostring();
jit sun28 pointsPosted Mar 9, 2012, 2:55 AM EST
it may be helpful for u
textBox3.Text = Convert.ToString(Convert.ToInt16(textBox1.Text) + Convert.ToInt16(textBox2.Text));