internal void StopButton_Click(object sender, EventArgs e) { if (!StopButton.Enabled) return; stopTimerAndCounters(); Thread thread1 = new Thread(stopProcess); thread1.Name = "stopProcess() Thread"; thread1.Start(); }