Merhaba,
İstediğiniz kodlar aşağıdadır. Yalnız siz kendinize göre uyarlamalısınız. Yani bu dosya size ancak referans olur.
Option Explicit
Dim giris As Variant
Private Sub Combo1_Click()
Text1.Text = Combo1.Text
Command1.Enabled = True
End Sub
Private Sub Command1_Click() 'giriş butonu
giris = Text1.Text + Chr(32) + Chr(32) + Label6.Caption
Command2.Enabled = True
Command1.Enabled = False
Combo1.Enabled = False
Text1.Enabled = False
End Sub
Private Sub Command2_Click() 'çıkış butonu
Dim i
Dim nb
List1.AddItem giris & " " & Label7.Caption
Command2.Enabled = False
Command1.Enabled = False
Combo1.Enabled = True
Text1.Enabled = True
Text1.Text = ""
Combo1.Text = ""
Open "C:/Giris.txt" For Output As #1 'txt dosyasina kayit islemi burdan basliyor.
For i = 0 To List1.ListCount - 0
nb = List1.List(i)
Write #1, nb
Next
Close #1
End Sub
Private Sub Form_Load()
Command2.Enabled = False
Command1.Enabled = False
Label6.Caption = Time + Date
Label7.Caption = Time + Date
End Sub
Private Sub Timer1_Timer()
Label6.Caption = Time + Date
End Sub
Private Sub Timer2_Timer()
Label7.Caption = Time + Date
End Sub