0% found this document useful (0 votes)
229 views4 pages

Menu Áreas

This Visual Basic program calculates the area of different geometric figures. It contains a main form with buttons that open additional forms for calculating the area of circles, triangles, rectangles, and other shapes. The user inputs values in text boxes and clicks buttons to calculate the areas and display the results.

Uploaded by

juan balderas
Copyright
© © All Rights Reserved
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% found this document useful (0 votes)
229 views4 pages

Menu Áreas

This Visual Basic program calculates the area of different geometric figures. It contains a main form with buttons that open additional forms for calculating the area of circles, triangles, rectangles, and other shapes. The user inputs values in text boxes and clicks buttons to calculate the areas and display the results.

Uploaded by

juan balderas
Copyright
© © All Rights Reserved
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/ 4

Menu áreas

Programa en Visual basic que calcula el área de distintas figuras geométricas.

Public Class Form1

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button4.Click
Form4.Show()
Me.Hide()
End Sub

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 Form1_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load

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 Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button2.Click
Form2.Show()
Me.Hide()
End Sub
End Class
Public Class Form2

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 = 3.1416 * radio * radio
TextBox2.Text = area
End Sub

Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load

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 Label1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Label1.Click

End Sub

Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load

End Sub
End Class

Public Class Form4

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
TextBox3.Text = area
End Sub

Private Sub Form4_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load

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 base, altura, area As Double
base = TextBox1.Text
altura = TextBox2.Text
area = base * altura
TextBox3.Text = area
End Sub

Private Sub Form5_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load

End Sub
End Class

You might also like