View Single Post
Old Mar 28, 2011, 06:28 PM   #1
shuggans
75 Posts
 
Join Date: Dec 2007
Location: Central Nebraska
Posts: 170 (0.08/day)
Thanks: 85
Thanked 7 Times in 6 Posts

System Specs

Visual basic text file nightmare

Hello, I am writing a program that needs to be able to read from a text file and display its output into a multiline text box. I have this part done. my problem is, I need this to update in real time as the text file im reading from is a log that keeps track of uploading of files etc. the method i had had in mind to update the text box in real time was to loop the reading of the text file and add a thread.sleep(5000) line in the loop, giving 5000 milliseconds before it refreshes- this method causes the program to freeze. any other ideas on how to do this? Thanks in advance
-sean
shuggans is offline  
Reply With Quote