0

I am using a background thread in my download page. I am leaving the download page and going to item deatis page. I need to change the status of item that is currently downloading to "Downloaded" when the download thread completes. How can I know that the thread is finished?

Nelson T Joseph
  • 2,683
  • 8
  • 39
  • 56
  • Check this one http://stackoverflow.com/questions/945122/how-can-i-tell-if-a-thread-is-finished-executing-without-polling-threadstate – adams Apr 20 '12 at 06:19

1 Answers1

1

You will have to subscribe for event which indicates completion of your task like you have RunWorkerCompleted. You can find an example for your understand here or here

Adil
  • 146,340
  • 25
  • 209
  • 204