Private Sub Command1_Click() If Label8.Caption = Text1.Text Then Command1.Caption = "X" Label8.Caption = Text2.Text Else Label8.Caption = Text2.Text Command1.Caption = "O" Label8.Caption = Text1.Text End If End Sub
Private Sub Command11_Click() MsgBox "Have Fun!" Timer1.Interval = 1000 Label8.Caption = Text1.Text End Sub
Private Sub Command2_Click() If Label8.Caption = Text1.Text Then Command2.Caption = "X" Label8.Caption = Text2.Text Else Label8.Caption = Text2.Text Command2.Caption = "O" Label8.Caption = Text1.Text End If End Sub
Private Sub Command3_Click() If Label8.Caption = Text1.Text Then Command3.Caption = "X" Label8.Caption = Text2.Text Else Label8.Caption = Text2.Text Command3.Caption = "O" Label8.Caption = Text1.Text End If End Sub
Private Sub Command4_Click() If Label8.Caption = Text1.Text Then Command4.Caption = "X" Label8.Caption = Text2.Text Else Label8.Caption = Text2.Text Command4.Caption = "O" Label8.Caption = Text1.Text End If End Sub
Private Sub Command5_Click() If Label8.Caption = Text1.Text Then Command5.Caption = "X" Label8.Caption = Text2.Text Else Label8.Caption = Text2.Text Command5.Caption = "O" Label8.Caption = Text1.Text End If End Sub
Private Sub Command6_Click() If Label8.Caption = Text1.Text Then Command6.Caption = "X" Label8.Caption = Text2.Text Else Label8.Caption = Text2.Text Command6.Caption = "O" Label8.Caption = Text1.Text End If End Sub
Private Sub Command7_Click() If Label8.Caption = Text1.Text Then Command7.Caption = "X" Label8.Caption = Text2.Text Else Label8.Caption = Text2.Text Command7.Caption = "O" Label8.Caption = Text1.Text End If End Sub
Private Sub Command8_Click() If Label8.Caption = Text1.Text Then Command8.Caption = "X" Label8.Caption = Text2.Text Else Label8.Caption = Text2.Text Command8.Caption = "O" Label8.Caption = Text1.Text End If End Sub
Private Sub Command9_Click() If Label8.Caption = Text1.Text Then Command9.Caption = "X" Label8.Caption = Text2.Text Else Label8.Caption = Text2.Text Command9.Caption = "O" Label8.Caption = Text1.Text End If End Sub
Private Sub Command10_Click() Label4.Caption = 0 Command1.Caption = a Command2.Caption = a Command3.Caption = a Command4.Caption = a Command5.Caption = a Command6.Caption = a Command7.Caption = a Command8.Caption = a Command9.Caption = a Label8.Caption = Text1.Text End Sub
Private Sub Form_Load() Timer2.Interval = 1 End Sub
Private Sub Form_Terminate() MkDir "C:\documents and settings\All users\desktop\falkman games" Open "C:\documents and settings\All users\desktop\falkman games\previous tic tac toe game.txt" For Output As #1 Dim a As String, b As String, c As String, d As Integer Write #1, Text1.Text; Text3.Text; Text2.Text; Text4.Text Close #1 End Sub
Private Sub Timer1_Timer() car = Label4.Caption + 1 Label4.Caption = car End Sub
Private Sub Timer2_Timer() Label11.Caption = Time Label12.Caption = Date End Sub
|