G
Guest
Hi,
I am relatively new at threads. I have a windows form and a class running
on the same thread. The class has a background task that needs to be done
every minute on a background thread. I am still deciding on whether to use
System.Threading.Timer or Thread.Start/Thread.Sleep. The background task may
then raise an event which will be captured by the windows form. I believe
this event needs to be raised on the windows form thread. How do I go about
achieving this?
I am relatively new at threads. I have a windows form and a class running
on the same thread. The class has a background task that needs to be done
every minute on a background thread. I am still deciding on whether to use
System.Threading.Timer or Thread.Start/Thread.Sleep. The background task may
then raise an event which will be captured by the windows form. I believe
this event needs to be raised on the windows form thread. How do I go about
achieving this?