private static void Restart() { Thread thtmp = new Thread(new ParameterizedThreadStart(run)); object appName = Application.ExecutablePath; Thread.Sleep(1000); thtmp.Start(appName); } private static void run(object obj) { Process ps = new Process(); ps.StartInfo.FileName = obj.ToString(); ps.Start(); }