I’m trying to implement a BackgroundWorker in .NET 1.1 (since there isn’t any) and I’m not quite versed in threading and delegates.
Right now I have a class call BackgroundWorker with a method called DoWork. I know I must create a thread in the BackgroundWorker and execute a delegate in that thread, but there are two things I don’t have quite clear yet.
-
How can I start the thread in BackgroundWorker if DoWork receives a parameterless delegate? Or should I use another approach other than the delegate?
-
How can I implement the
ProgressChangedevent?
Already done by Juval for 1.1
http://www.code-magazine.com/articleprint.aspx?quickid=0403071&printmode=true