Hey,
I am working on some code where I initialize an object (in this case a form), which then idles until it either receives a message from someone, or one of its methods is invoked directly.
In my form, I have a listbox (lTester) that shows all calls made to this form. During run-time I get the following error:
Cross-thread operation not valid: Control 'lTester' accessed from a thread other than the thread it was created on.
I have not started any threads manually, in fact I have never worked with them and don't really know how C# manages the UI components internally. Is there any way to get around this?
Thanks,
PM