This program contains a main menu form with buttons to calculate the area of different shapes. It includes forms to calculate the area of a circle by inputting the radius, triangle by inputting the base and height, and rectangle by inputting the base and height. Each area calculation form allows the user to input values and see the resulting area, and also has a button to return to the main menu form.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
30 views2 pages
Visual 1 PDF
This program contains a main menu form with buttons to calculate the area of different shapes. It includes forms to calculate the area of a circle by inputting the radius, triangle by inputting the base and height, and rectangle by inputting the base and height. Each area calculation form allows the user to input values and see the resulting area, and also has a button to return to the main menu form.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
Programa en Visual que tiene 1 menu para calcular área de circulo, de cuadrado, rectángulo y
triangulo Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click Form3.Show() Me.Hide() End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click Form2.Show() Me.Hide() End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click Form5.Show() Me.Hide() End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button4.Click Form4.Show() Me.Hide() End Sub End Class
Public Class Form2
Private Sub Label2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Label2.Click
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click Dim radio, area As Double radio = TextBox1.Text area = radio * 3.1416 TextBox2.Text = area End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click Form1.Show() Me.Hide() End Sub End Class Public Class Form3
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click Dim base, altura, area As Double base = TextBox1.Text altura = TextBox2.Text area = (base * altura) / 2 TextBox3.Text = area End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click Form1.Show() Me.Hide() End Sub End Class Public Class Form5
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click Dim altura, base, area As Double base = TextBox1.Text altura = TextBox2.Text area = altura * base TextBox3.Text = area End Sub End Class