You are on page 1of 3

public Class Form5

Dim monto, tasa, seguro As Integer


Private Sub TextBox6_TextChanged(sender As Object, e As EventArgs) Handles
TextBox6.TextChanged
monto = TextBox6.Text
If monto >= 10000 Then
tasa = 0.1
Else
tasa = 0.03
End If
End Sub

Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles


TextBox1.TextChanged

End Sub

Private Sub TextBox2_TextChanged(sender As Object, e As EventArgs) Handles


TextBox2.TextChanged
Dim edad As Integer
edad = TextBox2.Text
If edad >= 18 And 30 Then
seguro = 1000
MsgBox("El seguro de desempleo es de 1000")
ElseIf edad >= 31 Then
seguro = 2000
MsgBox("El seguro de desempleo es de 2000")
ElseIf edad < 18 Then
MsgBox("Los menores de edad no pueden solicitar prestamos")

End If
End Sub

Private Sub TextBox7_TextChanged(sender As Object, e As EventArgs) Handles


TextBox7.TextChanged
Dim taza As Integer
taza = TextBox7.Text

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles


Button1.Click
If monto >= 10000 Then
MsgBox("la taza sera de un 10%")
Else
MsgBox("la taza sera de un 3%")
End If
TextBox8.Text = ("el seguro de vida es de 500")
TextBox9.Text = ("el seguro de desempleo es =")
TextBox10.Text = seguro
End Sub
End Class
Dim monto, tasa, a As String

Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles


TextBox1.TextChanged

monto = TextBox1.Text

End Sub

Private Sub TextBox3_TextChanged(sender As Object, e As EventArgs) Handles


TextBox3.TextChanged

End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs)

If monto >= 10000 Then

TextBox2.Text = ("10%")

tasa = 0.1

Else

TextBox2.Text = ("3%")

tasa = 0.03

End If

TextBox3.Text = monto * tasa

End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

If monto >= 10000 Then

TextBox2.Text = ("10%")

tasa = 0.1

Else

TextBox2.Text = ("3%")

tasa = 0.03

End If

End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click

If monto >= 10000 Then

TextBox2.Text = ("10%")

tasa = 0.1

Else

TextBox2.Text = ("3%")

tasa = 0.03

End If

TextBox3.Text = monto * tasa

TextBox4.Text = TextBox3.Text * 12

End Sub

End Class

You might also like