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 -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -