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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -