I have created a thread in my code to deal witha lengthy download from the net so the GUI remains reponsive whilst the download takes place. However - I want this thread to run numerous times as the file online changes quite often.
I put the Thread.Start command in a timer and everything works fine the first time the code runs. The second time the code runs I get a ' ThreadStateException' error.
Having consulted the manual I can see that my thread is starting, running and then stopping succesfully BUT that a thread cannot return to the running state once it has stopped.
Can anybody tell me how to get round this problem??
Many Thanks
I put the Thread.Start command in a timer and everything works fine the first time the code runs. The second time the code runs I get a ' ThreadStateException' error.
Having consulted the manual I can see that my thread is starting, running and then stopping succesfully BUT that a thread cannot return to the running state once it has stopped.
Can anybody tell me how to get round this problem??
Many Thanks