c++ - How to raise events of backgroundworker -


i using vs2010, c++/clr windowsformsapplication. want raise runworkercomplete event using backgroundworker->onrunworkercomple method

backgroundworker1->runworkerasync(); while (progressbar1->value != progressbar1->maximum) {     progressbar1->value = parentform1->importeddata[comboboxselecteditemid]->progressstatus;  } 

the thing in backgroundworker1 start time-consuming operation. , while bgw isbusy progressbar cheking value of int variable progressstatus. problem runworkercompleted doesn't raise. how can raise in dowork?

private: system::void backgroundworker1_dowork(system::object^  sender, system::componentmodel::doworkeventargs^  e)  {     myclassobject->timeconsumingoperation();     //how raise runworkercompleted here???  } 


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -