I want to make a programs to sum 2 number in 2 text box but it's just not working. I don't know exactly why. (And sorry for my bad english skill XD).
Here's the code :
textBox3.Text = Convert.ToInt32(textBox1.Text) + Convert.ToInt32(textBox2.Text);
Since the result of the operation is not a string but an int you have to call ToString() to assign the string value to textBox3.Text
textBox3.Text = (Convert.ToInt32(textBox1.Text) + Convert.ToInt32(textBox2.Text)).ToString();
Working code:
string y = "";
y = (Convert.ToInt32("3") + Convert.ToInt32("4")).ToString();
textBox1.TextandtextBox2.Text? What do you mean by not working? Any exception or error message?