C
Christopher Kimbell
Hi,
I want to create a class that creates a thread internally to do some work.
It will interact with winforms using events.
What happens when the code that is running in a seperate thread raises an
event?
Will the code in the event handler that is attached to the event run in the
internal thread,
or will it run in the GUI thread?
The MSDN documentation says that all interaction with the GUI from other
threads have
to go through an Invoke method.
The user shouldn't know that the class used threads internally.
If anybody has any ideas, article links etc it would be most apreciated.
Thanks,
Chris
I want to create a class that creates a thread internally to do some work.
It will interact with winforms using events.
What happens when the code that is running in a seperate thread raises an
event?
Will the code in the event handler that is attached to the event run in the
internal thread,
or will it run in the GUI thread?
The MSDN documentation says that all interaction with the GUI from other
threads have
to go through an Invoke method.
The user shouldn't know that the class used threads internally.
If anybody has any ideas, article links etc it would be most apreciated.
Thanks,
Chris