The code that initializes it is:
CheckForIllegalCrossThreadCalls = False
getDir = New Thread(Sub() Me.RecursiveSearch("C:\", "*.*", ListBox1))
getDir.IsBackground = True
getDir.Start()
scannerthread = New Thread(AddressOf filescanner)...
Yes, but this won't work when it's being ran with threads in the background... At the start it starts on a thread, then another thread is initialized. The boolean would set to True straight away when it's on threads. And it has to be on threads to work quickly...
The code is being worked on a thread in the background. At the same time another thread is "processing" information about the files added into the listbox. After that has finished I check if a boolean is finished or not to see if I need to use GoTo to the top to go down the missed items, if it...
Hi.
I have some code which recursively searches for files on a folder. The problem is I want it to change a boolean value once it has completed. I don't mean once it gets to the end of the sub, I mean once it's literally finished. I had to code it the way it is otherwise I would have gotten...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.