I use to check the status of a thread using if(Thread.IsAlive) . A form is running in this thread. Sometimes at run time, although the form remains open, a call to Thread.IsAlive seems to be evaluated as false. I decided to do the same check with if(Thread.ThreadState==ThreadState.Running) . Is this the right way? If not, what is the possible work around?
Victor mukherjee
source share