c# - Why does the BackgroundWorker's ProgressChanged event work without calling RunWorkerAsync? -


i have question regarding backgroundworker. can call progresschanged event without having started thread runworkerasync.

i don't understand why works. how can notify original thread if new thread didn't start yet?

this seems work regardless, since updates gui without problem, wasn't before implemented backgroundworker.

calling reportprogresschanged() raise progresschanged event regardless of thread called from.

inside inplementation of reportprogresschanged() mechanism raises event on ui thread if wasn't called ui thread. if reportprogresschanged() is being called ui thread, raises event without needing marshalling.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -