Public Class Form2

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Public Class Form1

Dim Width As Integer


Dim Length As Single
Private Sub QuitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles QuitToolStripMenuItem.Click
Application.Exit()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
Width = TextBoxWidth.Text
Length = TextBoxLength.Text
Label5.Text = Width * Length
Label6.Text = 2 * (Length) + 2 * (Width)

End Sub
End Class

You might also like