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

UNIVERSIDAD DE SAN CARLOS DE GUATEMALA

FACULTAD DE INGENIERIA
PROGRAMACION DE COMPUTADORAS 2
ING. ANIBAL DE LOS ANGELES

RESOLUCION DE PARCIAL No. 2

ERICK MIJANGOS CARDENAS


2011-14102
03/05/15

PROGRAMA DE CALCULADORA
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles
Button3.Click
a = Val(TextBox1.Text)
b = Val(TextBox2.Text)
r=a*b
TextBox3.Text = r
End Sub
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles
Button4.Click
a = Val(TextBox1.Text)
b = Val(TextBox2.Text)
r=a/b
TextBox3.Text = r
End Sub
Private Sub Button5_Click(sender As Object, e As EventArgs) Handles
Button5.Click
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
End Sub
End Class

PROGRAMA DE LOGIN
Public Class Form1
Dim intento As Integer
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click
If (intento < 2) Then
If TextBox1.Text = "admin" And TextBox2.Text = 123 Then
MsgBox("bienvenido")
Else
MsgBox("intentelo de nuevo")
End If
End If
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles
Button5.Click
TextBox1.Clear()
TextBox2.Clear()
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles
Button5.Click
end
End sub
End Class

You might also like