Hello
You will have to use timer to achieve this .
Drag and drop Timer Control
Drag and drop a Label to display time
Double click on the timer control you will generate a TICK event and write this code
private void timer1_Tick(object sender, EventArgs e)
{
lbldt.Text = DateTime.Now.ToLongTimeString();
}
Set interval to 1000.
Note :- Do not forget to enable the timer .
Regard's
Raj.Trivedi
"Sharing is Caring"
Please mark as answer if your Query is resolved
Raja_89, if this helps please login to Mark As Answer. | Alert Moderator