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
Post a Comment