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)