0

I have a form that uses a background worker, and I was just wondering if I need to Dispose of it personally, or if it does it by itself when the event is compelted. I would assume it will Dispose of itself, but I just need to make sure I tie up all loose ends.
Thanks!

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by AceiferMaximus
0

Neither -- the background worker is destroyed when the form is disposed (assuming you have dropped a background worker from your toolbox on to the form). If you have declare the background worker as a member then you need to pop in to your designer file and add it to the Dispose() method yourself.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.