Hey guys, im trying to make a VB application where the computer calculates the area of a circle with radius of 10. I have the text field and two command buttons. 1 to calculate the area and asnother to stop the program. Heres the code Im trying to do:
Private Sub cmdCalculate_Click()
lblAnswer.Calculate = 3.14 * 10 ^ 2 'Display area of circle of radius 10 in label'
End Sub
Private Sub cmdDone_Click()
Unload Me
End Sub
Private Sub lblMessage_Click(Index As Integer)
End Sub
Whenever i try to run the program it gives me a runtime error of 424: object required