im trying to make a very siple calculator (to the point of only for lines of code) however the addtion dosnt work:
this is all my code:
this is the code that isnt working even though it clearly should be:Code:Private Sub add_Click() Text3.Text = Text1.Text + Text2.Text End Sub Private Sub divide_Click() Text3.Text = Text1.Text / Text2.Text End Sub Private Sub multiply_Click() Text3.Text = Text1.Text * Text2.Text End Sub Private Sub subtract_Click() Text3.Text = Text1.Text - Text2.Text End Sub
when i test it, i input 4 + 4 and it gives me an aswer such as 44.Code:Private Sub add_Click() Text3.Text = Text1.Text + Text2.Text End Sub
why not eight? god visual basic is makeing me very angry!!!![]()




Reply With Quote