T
teillon
I'm trying to write a VB.NET utility that performs a looping task--say,
list all files in a directory, over and over again, continuously.
I want to be able to put this logic in a User Control with a text box
for the path to monitor and a list box to display the results.
I want to be able to drop this control numerous times on a parent
project form and have them all run asyncronysly.
I am not a Threading expert, but I was assuming that each User Control
would run in it's own thread.
However, the results I'm getting show differently. If I have two
controls on the form and start one it runs fine, but when I start the
other one, the first one "pauses" until the second is stopped.
I know I need to do some threading here, but am having problems getting
it right. Is there a simple way to wrap the ENTIRE user control class
in it's own thread?
Thanks!
list all files in a directory, over and over again, continuously.
I want to be able to put this logic in a User Control with a text box
for the path to monitor and a list box to display the results.
I want to be able to drop this control numerous times on a parent
project form and have them all run asyncronysly.
I am not a Threading expert, but I was assuming that each User Control
would run in it's own thread.
However, the results I'm getting show differently. If I have two
controls on the form and start one it runs fine, but when I start the
other one, the first one "pauses" until the second is stopped.
I know I need to do some threading here, but am having problems getting
it right. Is there a simple way to wrap the ENTIRE user control class
in it's own thread?
Thanks!