---
title: "Timer Control in C#.Net"  
description: "The Timer Control plays an important rolein the development of programs both Client side and Server side development as well as in Windows Services. W"  
author: "Anonymous User"  
published: 2011-01-24  
updated: 2020-03-04  
canonical: https://www.mindstick.com/articles/410/timer-control-in-c-sharp-dot-net  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Timer Control in C#.Net

The Timer Control plays an important role in the development of programs both Client side and Server side development as well as in Windows Services. With the help of Timer Control we can raise events at a specific interval of time without the interaction of another thread.

##### How to use Timer Control

Drag and drop Timer control from toolbox on the window Form.

![Timer Control in C#.Net](https://www.mindstick.com/mindstickarticle/fda2bdfb-114f-4d48-8ddc-5193f7def41d/images/34821705-448c-4887-9159-be5e6a29b824.png)

![Timer Control in C#.Net](https://www.mindstick.com/mindstickarticle/fda2bdfb-114f-4d48-8ddc-5193f7def41d/images/99572a81-bb5c-44ae-bce5-8856d5538d79.png)

##### Code:

```
private void frmTimer_Load(object sender, EventArgs e){            //After 5000 milisecond time will update            timer1.Interval = 5000;}private void timer1_Tick(object sender, EventArgs e){            //Current time will show in label            label1.Text= DateTime.Now.ToLongTimeString();   }
```

![Timer Control in C#.Net](https://www.mindstick.com/mindstickarticle/fda2bdfb-114f-4d48-8ddc-5193f7def41d/images/1ff0c373-14d5-4890-a535-d18a94fe7221.png)

Time will update continuously after every 5000 millisecond.

![Timer Control in C#.Net](https://www.mindstick.com/mindstickarticle/fda2bdfb-114f-4d48-8ddc-5193f7def41d/images/43ff7f83-8ed0-4527-9542-5dae61d4e864.png)

##### Timer Properties

**Interval:** Set the interval at which to raise the Elapsed event.

**Enabled:** Set a value indicating whether the Timer should raise the Elapsed event. By default it set to false.

\

---

Original Source: https://www.mindstick.com/articles/410/timer-control-in-c-sharp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
