MOVED TOPIC FROM C# TO GENERAL .NET
I am getting an error when trying to ammend the value of a label.
The error is:
Code:
Illegal cross-thread operation: Control 'HomeLabelProcessStatus' accessed from a thread other than the thread it was created on.\r\nStack trace where the illegal operation occurred
I am getting the error after a FileSystemWatcher Event has Fired.
I think the error is occuring because the FileSystemWatcher is creating a new thread to execute ist processes.
One thing I need it to do is change a label on the form.
How do I access the forms labels from the new thread?
I am using C#.NET but
VB help/example ok too.
======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================