Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementing Custom BackgroundWorker

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.

  1. How can I start the thread in BackgroundWorker if DoWork receives a parameterless delegate? Or should I use another approach other than the delegate?

  2. How can I implement the ProgressChanged event?

like image 601
PedroC88 Avatar asked Feb 16 '26 01:02

PedroC88


1 Answers

Already done by Juval for 1.1

http://www.code-magazine.com/articleprint.aspx?quickid=0403071&printmode=true

like image 184
rene Avatar answered Feb 19 '26 17:02

rene



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!