C
Charles Law
Hi guys.
I have two threads: a main thread and a background thread. Lots of stuff
happens in the background thread that means I have to update several (lots)
of controls on a form.
It is quite tiresome to have to write code to call MyControl.Invoke for each
control on the form, along with the delegates that are required for each.
Is there a better way to do this? What I mean is, if I could marshal the
background thread back to the main thread before updating the controls, I
could access their properties without having to use Invoke. I could replace
lots of delegates and Invoke calls with a single function to marshal back to
the main thread.
Does anyone have any ideas?
TIA
Charles
I have two threads: a main thread and a background thread. Lots of stuff
happens in the background thread that means I have to update several (lots)
of controls on a form.
It is quite tiresome to have to write code to call MyControl.Invoke for each
control on the form, along with the delegates that are required for each.
Is there a better way to do this? What I mean is, if I could marshal the
background thread back to the main thread before updating the controls, I
could access their properties without having to use Invoke. I could replace
lots of delegates and Invoke calls with a single function to marshal back to
the main thread.
Does anyone have any ideas?
TIA
Charles