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.
private void frmTimer_Load(object sender, EventArgs e)
milisecond time will update
private void timer1_Tick(object sender, EventArgs e)
time will show in label
Time will update continuously after
every 5000 millisecond.
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.