Hey Have a real problem here, I am making a simple calculator and it's saying InvalidCastException was unhandled when I try to debug it, here's the code, please tell me whats wrong with it: (and yes I have renamed the textboxes to addequals etc...
______________________________________________________________________________________________________
Public Class Form1
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
addequals.Text = Val(add1.Text) + Val(add2.Text)
subtractequals.Text = Val(subtract1.Text) - (subtract2.Text)
multiplyequals.Text = Val(multiply1.Text) * (multiply2.Text)
divideequals.Text = Val(divide1.Text) / (divide2.Text)
End Sub
End Class