Professional Documents
Culture Documents
pass = TextBox2.Text
usu = TextBox1.Text
End Sub
ic Class Form2
Dim a, u, c, jos As Integer
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim arreglo(8) As Integer
arreglo(0) = TextBox1.Text
arreglo(1) = TextBox2.Text
arreglo(2) = TextBox3.Text
arreglo(3) = TextBox4.Text
arreglo(4) = TextBox5.Text
arreglo(5) = TextBox6.Text
arreglo(6) = TextBox7.Text
arreglo(7) = TextBox8.Text
arreglo(8) = TextBox9.Text
jos = arreglo(1) + arreglo(2) + arreglo(3) + arreglo(4) + arreglo(5) + arreglo(6) + arreglo(7) + arreglo(8) + arreglo(0)
If TextBox1.Text > 9 Or TextBox2.Text > 9 Or TextBox3.Text > 9 Or TextBox4.Text > 9 Or TextBox5.Text > 9 Or
TextBox6.Text > 9 Or TextBox7.Text > 9 Or TextBox8.Text > 9 Or TextBox9.Text > 9 Then
MsgBox("Falla no se pueden ingresar números mayores al 9")
ElseIf jos = 45 Then
Label4.Visible = True
Label2.Visible = True
Label1.Visible = True
End If
ElseIf jos <> 45 Then