When Something Occurs in a BackgroundWorker, Trigger Code on a Different Thread?
Posted
by Soo
on Stack Overflow
See other posts from Stack Overflow
or by Soo
Published on 2010-06-18T15:28:40Z
Indexed on
2010/06/18
15:33 UTC
Read the original article
Hit count: 175
I have a background worker that runs and looks for stuff, and when it finds stuff, I want to update my main WinForm. The issue that I'm having is that when I try to update my WinForm from my background worker, I get errors that tell me I can't modify things that were made outside of my background worker (in other words, everything in my form).
Can someone provide a simple code example of how I can get my code to work the way I want it to? Thanks!
© Stack Overflow or respective owner