I have an app that I want to sit and wait for two files that are being created from another application. When these files are detected I want the screen to be updated and a button enabled to allow further processing of these two require files.
This is what Im attempting but with little success:
Is this something that I should be using a Thread on? Bear in mind I havent used threads before which is why for something so simple Im using the DoEvents method
This is what Im attempting but with little success:
Code:
Do While True
Application.DoEvents()
if file one exists update screen
if file two exist update screen
if both files exits enable button and jump out of loop
Loop
Is this something that I should be using a Thread on? Bear in mind I havent used threads before which is why for something so simple Im using the DoEvents method