private void timer1_Tick(object sender, EventArgs e) { Lbl_TimeLeft.Text = counter.ToString(); counter = counter - 1; }
System.Windows.Forms.Timers
System.Timers.Timer
System.Threading.Timer
System.Threading.Thread.Sleep
int counter = 100; private void button1_Click(object sender, EventArgs e) { timer1.Enabled = true; } private void timer1_Tick(object sender, EventArgs e) { label1.Text = counter.ToString(); counter = counter - 1; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)