c# - Thread state tracing -


how can trace thread state if alive or not ?

what want execute function thread , while thread working (running) form show when thread finish executing function form closed .

so how can make change event fired when thread finished ?

something this:

thread = new thread(fun);     a.start();     a.changed += dowork;         void dowork(object sender, formclosedeventargs e)     {         //work     } 

try backgroundworker :

the example on msdn page pretty similar you're trying do.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -