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