private void Form1_Activate(object sender, EventArgs e) { MyAppTimer.Stop(); }
private void Form1_Deactivate(object sender, EventArgs e) { MyAppTimer.Interval = 20000; MyAppTimer.Start(); }