// Button START click event
Thread thrd = new Thread(new ThreadStart(startAction));
if (thrd.IsAlive)
{
thrd.Join();
return;
}
else
{
thrd.Start();
}
When the action is complete i made a messagebox to inform that the action has been completed.
Without closing the form if i re-run the action, it works halfway and stops. When the action is again re-run for third time it doesn't work at all. What could be the problem?

New Topic/Question
Reply



MultiQuote




|