Link to home
Start Free TrialLog in
Avatar of davetough
davetough

asked on

add two textboxes to show sum in third textbox

I am using visual studio 2008 express-
I have three textboxes this.textBox1, this.textBox2, and this.textBox3 and a button.
How do I code button to add textbox1 and textBox2 to display in textBox3.
Thank you
Avatar of Jarrod
Jarrod
Flag of South Africa image

in the designer doube click on the button and it will create a event function for you.

Then type in:



textBox3.Text =  textBox1.Text + " " + textBox2.Text

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
* The word "sum" was used in the description implying that numbers were being input.  =)
:) - good eyes, I missed that totally.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of davetough
davetough

ASKER

thank you