You are on page 1of 1

Private Sub btnCalculate_Click()

Dim Width As Single, Length As Single, Area As Single

' input data

Width = txtWidth.Text
Length = txtLength.Text

' calculation

Area = Width * Length

' output

lblArea.Caption = Area

End Sub

Private Sub btnClosed_Click()


Unload Me
End Sub

You might also like