Documentos de Académico
Documentos de Profesional
Documentos de Cultura
"" "Entre Una Apuesta Por Favor.... " "Faltan Datos"
"" "Entre Una Apuesta Por Favor.... " "Faltan Datos"
Object,
ByVal e As System.EventArgs)
If TxtApuesta.Text = "" Then
MsgBox("Entre una apuesta por favor....", "Faltan datos")
ElseIf OptCaballo1.Checked = False And OptCaballo2.Checked =
False And OptCaballo3.Checked = False And OptCaballo4.Checked = False And
OptCaballo5.Checked = False Then
MsgBox("Escoga un favorito....", "Faltan datos")
Else
Timer1.Enabled = True
End If
End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles CmdSalir.Click
Me.Close()
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Randomize()
Dim Cambio1 As Integer
Cambio1 = 0
Dim Cambio2 As Integer
Cambio2 = 0
Dim Cambio3 As Integer
Cambio3 = 0
Dim Cambio4 As Integer
Cambio4 = 0
Dim Cambio5 As Integer
Cambio5 = 0
End Sub
PicCab3.Left = 7560
PicCab4.Left = 7560
PicCab5.Left = 7560
ElseIf PicCab4.Left < 360 Then
Timer1.Enabled = False
MsgBox("Gan Caballo4", vbExclamation, "Ganador")
If OptCaballo4.Checked = True Then
MsgBox("Acaba de ganar " & TxtApuesta.Text,
vbExclamation, "Es Usted un Ganador")
TxtTotal.Text = Val(TxtTotal.Text) + Val(TxtApuesta.Text)
TxtGanados.Text = Val(TxtGanados) + 1
Else
MsgBox("Acaba de perder " & TxtApuesta.Text,
vbExclamation, "Es Usted un Perdedor")
TxtTotal.Text = Val(TxtTotal) - Val(TxtApuesta.Text)
TxtPerdidos.Text = Val(TxtPerdidos) + 1
End If
PicCab1.Left = 7560
PicCab2.Left = 7560
PicCab3.Left = 7560
PicCab4.Left = 7560
PicCab5.Left = 7560
ElseIf PicCab5.Left < 360 Then
Timer1.Enabled = False
MsgBox("Gan OptCaballo5", vbExclamation, "Ganador")
If OptCaballo5.Checked = True Then
MsgBox("Acaba de ganar " & TxtApuesta.Text,
vbExclamation, "Es Usted un Ganador")
TxtTotal.Text = Val(TxtTotal.Text) + Val(TxtApuesta.Text)
TxtGanados.Text = Val(TxtGanados) + 1
Else
MsgBox("Acaba de perder " & TxtApuesta.Text,
vbExclamation, "Es Usted un Perdedor")
TxtTotal.Text = Val(TxtTotal) - Val(TxtApuesta.Text)
TxtPerdidos.Text = Val(TxtPerdidos) + 1
End If
PicCab1.Left = 7560
PicCab2.Left = 7560
PicCab3.Left = 7560
PicCab4.Left = 7560
PicCab5.Left = 7560
End If
End Sub
Private Sub CmdIniciar_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles CmdIniciar.Click
If TxtApuesta.Text = "" Then
MsgBox("Entre una apuesta por favor....", vbCritical, "Faltan
datos")
ElseIf OptCaballo1.Checked = False And OptCaballo2.Checked =
False And OptCaballo3.Checked = False And OptCaballo4.Checked = False And
OptCaballo5.Checked = False Then
MsgBox("Escoga un favorito....", vbCritical, "Faltan datos")
Else
Timer1.Enabled = True
End If
End Sub
End Class