I'm sure this has been asked before, but I cannot seem to find a solution that works. I have a NumericUpDown on my form and a label along with a timer and a button. I want the timer to start when the button is pressed and the interval for the timer to equal that of the NumericUpDown and a countdown will be displayed in the label. I know this should be easy. Any help?
So far:
int tik = Convert.ToInt32(TimerInterval.Value);
if (tik >= 0)
{
TimerCount.Text = (tik--).ToString();
}
else
{
TimerCount.Text = "Out of Time";
}
It doesn't seem to update as the timer ticks.