I\'m looking for a way to restart a thread that has been stopped by Abort()..
public partial class MyProgram : Form
{
private Thread MyThread = new Thread(
Simply add MyThread = new Thread(MyFunction) before calling MyThread.Start() in doStart(). Do not create the thread outside of your methods, the space there is thought for declarations.
EDIT: Please note that killing a thread with thread.Abort() can be very dangerous. You should try to accomplish clean multithreading, like Groo described in his post.