When an event is raised does the handler executes in the same thread as the main program or in another thread?.
Thanks !!
When an event is raised does the handler executes in the same thread as the main program or in another thread?.
Thanks !!
It gets executed on the thread that caused the event to occur.
Examples:
If you are doing GUI work this often means you need to marshall the event from the background thread to the GUI thread before touching any controls.