Make Auto Save txt with Visual Basic 6.0

Here. I will show you how to make auto save in file txt. You can type and auto save your file.
oke let's go..


  • First, open Visual Basic 6.0 and chose standard EXE
  • next, Take 1 Timer, 1 text box at Form
  • change interval timer1 be 10 (or as you like)
  • and, you copy paste this code in timer1
Private Sub Timer1_Timer()
Dim namefile
namefile = "Result"
Open App.Path & ("/" + namefile + ".txt") For Output As #1
Write #1, Text1.Text
Close #1
End Sub

Finish. Good Luck :)

0 komentar:

Posting Komentar

Created By Andi Hakim. Diberdayakan oleh Blogger.