I'm writeing an application, and I want it to scan a file every 30 seconds to see if anything has changed.
I have it set up now so that I can scan the file with the click of a button, but I want a way to run this function about every 30 seconds. Every way I know to have VB wait 30 seconds will freeze the program while it's waiting.
Is there any way to have it run some code every X seconds, and still allow you to click on a "stop" button to stop the program from running?
I have it set up now so that I can scan the file with the click of a button, but I want a way to run this function about every 30 seconds. Every way I know to have VB wait 30 seconds will freeze the program while it's waiting.
Is there any way to have it run some code every X seconds, and still allow you to click on a "stop" button to stop the program from running?