Just now I realize that I have never had to do basic equations in any of my little programs while learning VB, so I must ask something that may seem a little ridiculous...

Here's a basic way of explaining my question:

3 text boxes on a form (txt1,txt2,txt3)
1 command button (cmd1)

Say I want to add txt1 and txt2 and display result in txt3.
The command button to perform the calc.

This is what I've done:



Private Sub cmdCalc_Click()
x = Text1
y = Text2

Text3 = x + y
End Sub

Plus several other variations of the same.
As I'm sure you all realize, with what I've done, if txt1 =2 and txt2 = 2, txt3 displays "22"

What am I forgetting to do?

Thank you.