lunes, 7 de mayo de 2012
lunes, 30 de abril de 2012
jueves, 26 de abril de 2012
miércoles, 25 de abril de 2012
domingo, 22 de abril de 2012
jueves, 29 de marzo de 2012
Calculadora Basica Con Codigo.. Visual Basic
lbloperacion.Caption = "/"
End Sub
Private Sub cmdmultiplicacion_Click()
lbloperacion.Caption = "*"
End Sub
Private Sub cmdresta_Click()
lbloperacion.Caption = "-"
End Sub
Private Sub cmdresultado_Click()
If lbloperacion.Caption = "+" Then
lblresultado.Caption = Val(txtval1.Text) + Val(txtval2.Text)
Else
If lbloperacion.Caption = "-" Then
lblresultado.Caption = Val(txtval1.Text) - Val(txtval2.Text)
Else
If lbloperacion.Caption = "*" Then
lblresultado.Caption = Val(txtval1.Text) * Val(txtval2.Text)
Else
If lbloperacion.Caption = "*" Then
lblresultado.Caption = Val(txtval1.Text) * Val(txtval2.Text)
Else
End If
End If
End If
End If
End Sub
Private Sub cmdsuma_Click()
lbloperacion.Caption = "+"
jueves, 22 de marzo de 2012
Suscribirse a:
Entradas (Atom)





