Codigo Gato Itgs
Private Sub bedshaped_Click()
WindowsMediaPlayer1.URL = "C:\Playlists\keane - hopes and fears - bedshaped.mp3"
End Sub
Private Sub clearcmd_Click()
lbl1.Caption = ""
lbl2.Caption = ""
lbl3.Caption = ""
lbl4.Caption = ""
lbl5.Caption = ""
lbl6.Caption = ""
lbl7.Caption = ""
lbl8.Caption = ""
lbl9.Caption = ""
lbl1.Enabled = True
lbl2.Enabled = Truelbl3.Enabled = True
lbl4.Enabled = True
lbl5.Enabled = True
lbl6.Enabled = True
lbl7.Enabled = True
lbl8.Enabled = True
lbl9.Enabled = True
End Sub
Private Sub cmd0_Click()
turno = "0"
End Sub
Private Sub cmdx_Click()
turno = "X"
End Sub
Private Sub invierno_Click()
Image4.Visible = True
Image1.Visible = False
Image3.Visible = False
Image2.Visible = False
Image5.Visible = FalseEnd Sub
Private Sub lbl1_Click()
If (turno = "0") Then
lbl1.Caption = "0"
Else
If (turno = "X") Then
lbl1.Caption = "X"
End If
End If
Call win_123
Call win_159
Call win_147
Call empate
Call changeofturn
lbl1.Enabled = False
End Sub
Private Sub lbl2_Click()
If (turno = "0") Then
lbl2.Caption = "0"
Else
If (turno = "X") Then
lbl2.Caption = "X"
End If
End If
Callwin_123
Call win_258
Call empate
lbl2.Enabled = False
Call changeofturn
End Sub
Private Sub lbl3_Click()
If (turno = "0") Then
lbl3.Caption = "0"
Else
If (turno = "X") Then
lbl3.Caption = "X"
End If
End If
Call win_123
Call win_357
Call win_369
Call empate
lbl3.Enabled = False
Call changeofturn
End Sub
Private Sub lbl4_Click()
If (turno = "0") Then
lbl4.Caption = "0"Else
If (turno = "X") Then
lbl4.Caption = "X"
End If
End If
Call win_147
Call win_456
Call empate
Call changeofturn
lbl4.Enabled = False
End Sub
Private Sub lbl5_Click()
If (turno = "0") Then
lbl5.Caption = "0"
Else
If (turno = "X") Then
lbl5.Caption = "X"
End If
End If
Call empate
Call win_159
Call win_357
Call win_258
Call win_456
Call changeofturn
lbl5.Enabled = FalseEnd Sub
Private Sub lbl6_Click()
If (turno = "0") Then
lbl6.Caption = "0"
Else
If (turno = "X") Then
lbl6.Caption = "X"
End If
End If
Call win_369
Call empate
Call win_456
Call changeofturn
lbl6.Enabled = False
End Sub
Private Sub lbl7_Click()
If (turno = "0") Then
lbl7.Caption = "0"
Else
If (turno = "X") Then
lbl7.Caption = "X"
End If
End If
Call win_147
Call win_357Call empate
Call win_789
lbl7.Enabled = False
Call changeofturn
End Sub
Private Sub lbl8_Click()
If (turno = "0") Then
lbl8.Caption = "0"
Else
If (turno = "X") Then
lbl8.Caption = "X"
End If
End If
Call win_789
Call empate
Call win_258
Call changeofturn
lbl8.Enabled = False
End Sub
Private Sub lbl9_Click()
If (turno = "0") Then
lbl9.Caption = "0"
Else
If (turno = "X")Then
lbl9.Caption = "X"
End If
End If
Call changeofturn
Call win_159
Call win_369
Call empate
Call win_789
lbl9.Enabled = False
End Sub
Public Sub win_123()
If lbl1.Caption = "X" And lbl1.Caption = lbl2.Caption And lbl2.Caption = lbl3.Caption Then
ln1.Visible = True
Form2.Show
Unload Me
Else
If lbl1.Caption = "0" And lbl1.Caption = lbl2.Caption And lbl2.Caption = lbl3.CaptionThen
ln1.Visible = True
Form2.Show
Unload Me
End If
End If
End Sub
Public Sub win_147()
If lbl1.Caption = "X" And lbl1.Caption = lbl4.Caption And lbl4.Caption = lbl7.Caption Then
ln3.Visible = True
Form2.Show
Unload Me
Else
If lbl1.Caption = "0" And lbl1.Caption = lbl4.Caption And lbl4.Caption = lbl7.Caption Then
ln3.Visible = True
Form2.Show
Unload Me
End If
End If
End SubPublic Sub win_159()
If lbl1.Caption = "X" And lbl1.Caption = lbl5.Caption And lbl5.Caption = lbl9.Caption Then
ln2.Visible = True
Form2.Show
Unload Me
Else
If lbl1.Caption = "0" And lbl1.Caption = lbl5.Caption And lbl5.Caption = lbl9.Caption Then
ln2.Visible = True
Form2.Show
Unload Me
End If
End If
End Sub
Public Sub win_456()
If lbl4.Caption = "X" And lbl4.Caption =...
Regístrate para leer el documento completo.