P
Phil Jones
I'm trying to re-create the thread functionality found on a user Control for
a normal object that is not a control. The functionality is:
Control.Invoke(delegate) [Method]
Control.InvokeRequired [Prop]
I have a situation where I want to have the option to force execution on the
original thread that the object was created with.
I figure I can keep a reference to the "CurrentThread" within the
constructor of the object (is that a bad idea??).
---------
What I'm not sure about is how to implement the "Invoke" method
functionality. That is, execute the specified delegate on the object's
original thread (that was stored as a ref upon creation).
How can this be done? Perhaps I'm missing something easy here??? (I hope
so!)
Thanks for any advice. Cheers everyone.
===
Phil : New Zealand
a normal object that is not a control. The functionality is:
Control.Invoke(delegate) [Method]
Control.InvokeRequired [Prop]
I have a situation where I want to have the option to force execution on the
original thread that the object was created with.
I figure I can keep a reference to the "CurrentThread" within the
constructor of the object (is that a bad idea??).
---------
What I'm not sure about is how to implement the "Invoke" method
functionality. That is, execute the specified delegate on the object's
original thread (that was stored as a ref upon creation).
How can this be done? Perhaps I'm missing something easy here??? (I hope
so!)
Thanks for any advice. Cheers everyone.
===
Phil : New Zealand