You are on page 1of 1

Coding

Private Sub cmdcalculate click()


Dim length, width, Area As Integer
Dim msg As string
Length=Val(txtlength.Text)
Width=Val(txtwidth.Text)
Area=length*width
Msg=The area of rectangle is
lblarea.Caption=msg & area
End Sub

You might also like