Windows Application : c Sharp : Timer Control :Show Time in Label

private void Form1_Load(object sender, EventArgs e)
{
timer1.Enabled = true;
}
// Should Enable the timer controle for every tick the code below executes

private void timer1_Tick(object sender, EventArgs e)
{
label1.Text = DateTime.Now.ToString(“hh:mm:ss”);

}

About these ads