Skip to content

Adding two figures from textboxes

simon mack

Asked Mar 6, 2007, 9:02 AM EST1 answer
Share
LinkedInX
Hello,

I am brand new to c# and i m trying to learn how to add two numbers from texboxes.

How would i do that i can't find anything to help

many thanks

simon

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hey you need to convert the them to int first. int tal1 = Convert.ToInt32(textBox1.Text) + Convert.ToInt32(textBox2.Text); textBox3.Text = tal1.ToString(); Hoped that helped R.F
    0