Invoke delegate with arguments

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

This is an update to a previous post "Events not firing". Forgive my branch
off the original post.

I am getting an event from a dll which was fired from a different thread than
the UI thread receiving the event. I've read that I need to use the
Control.Invoke method on a control if I wish to modify the control, otherwise
I may get unexpected results like the event not firing etc.

My problem is that the Invoke method takes a delegate with no arguments.
In other words, the event that I receive from my dll has arguments that I wish
to pass to the Control.Invoke.

Can anyone provide some guidance.

Thank You.
 
Back
Top