J
Just Tom
I have a Winform that will spawn a thread to work on each file within a
directory. For each FileSystemInfo in this directory, it will get the hash
of that file. If the FileSystemInfo is infact another directory, I will
spawn another thread and repeat the whole process. However I want to keep
track of which directory is being parsed, so I want to list this in a Text
box back in the Winform. Here is my problem.
How do I get a thread to communicate back to the Winform the directory that
it is operating upon? The thread knows nothing about the form's class as
the thread is not instantiating that class. Everything I have tried so far
does not work.
Can somebody point me in the right direction?
directory. For each FileSystemInfo in this directory, it will get the hash
of that file. If the FileSystemInfo is infact another directory, I will
spawn another thread and repeat the whole process. However I want to keep
track of which directory is being parsed, so I want to list this in a Text
box back in the Winform. Here is my problem.
How do I get a thread to communicate back to the Winform the directory that
it is operating upon? The thread knows nothing about the form's class as
the thread is not instantiating that class. Everything I have tried so far
does not work.
Can somebody point me in the right direction?