I know it sounds stupid, but I\'ve tried everything to stop a timer, but the timer won\'t stop. I\'m working on a game and i would appreciate if someone could tell me how to
System.Windows.Forms.Timer: timer.Enabled = false; System.Threading.Timer: timer.Change(Timeout.Infinite, Timeout.Infinite); System.Timers.Timer: timer.Enabled = false; or timer.Stop();
timer.Enabled = false;
timer.Change(Timeout.Infinite, Timeout.Infinite);
timer.Stop();