private void timerHandler(object sender, EventArgs e) { numericUpDown2.DownButton(); if (numericUpDown2.Value != 0) return; button3.PerformClick(); }