H
Herfried K. Wagner [MVP]
Brett said:Form1.DoSleepCount = 1
Thread.CurrentThread.sleep(x)
Form1.DoSleepCount = 0
Where
Form1.Label2.Text = ""
is inside of DoSleepCount. Is that thread safe?
What's 'DoSleepCount'? According to a sample you posted previously it's a
variable. So, how would you set the label's text "inside" 'DoSleepCount'?
I suppose its more that I don't understand the concept of
Label2.invoke/begininvoke. Can you show some sample code?
A sample that uses this technique can be found here:
<URL:http://dotnet.mvps.org/dotnet/samples/filesystem/#FileSystemEnumerator>