Hello! I need help with my code. Whenever I run the program, it would always say "Compile Error: Method or data member not found". It would always highlight the Private Sub part. What do you think is the problem?
Private Sub cmdResult_Click()
DIm a, b, c as Integer
a = txtNum1.Text
b = txtNum2.Text
c = a+b
MsgBox c, vbInformation + vbOKOnly, "Result"
Private Sub cmdResult_Click()
DIm a, b, c as Integer
a = txtNum1.Text
b = txtNum2.Text
c = a+b
MsgBox c, vbInformation + vbOKOnly, "Result"