I was hoping someone could help me figure something.
I have a class that is a downloader and I've created some events on it
so that a Windows Form can use those to be notified when to update
screen information. The problem I'm running into is that when the
downloader runs on a different thread and those Events fire, if the
corresponding method on the GUI for that even updates any Controls, I
get a threading error. I know that I can solve this by using
delegates on my Windows Form, but I was wondering if there was any way
to code the downloader object so that the delegates were taking care
of on that side. I only ask because I think if you use the
BackgroundWorke r and call the ReportProgress( ) method that the
corresponding method for the event on the Windows Form can update
Controls just fine. How is it able to do that?
Any help would be appreciated.
Thanks!