---
title: "Timer Control in VB.Net"  
description: "The Timer Control in VB.NetWhere A Timer control allows you to set a time interval to execute an event after some interval continuously. This is ve"  
author: "Pushpendra Singh"  
published: 2010-12-12  
updated: 2020-05-26  
canonical: https://www.mindstick.com/articles/321/timer-control-in-vb-dot-net  
category: "vb.net"  
tags: ["vb.net"]  
reading_time: 1 minute  

---

# Timer Control in VB.Net

## The Timer Control in VB.Net

Where A [Timer control](https://www.mindstick.com/articles/284/ajax-toolkit-timer-control-in-asp-dot-net) allows you to set a time interval to [execute](https://www.mindstick.com/interview/49/how-can-i-execute-a-php-script-using-command-line) an event after some interval continuously.

This is very [useful](https://www.mindstick.com/articles/12694/how-dolomite-mineral-is-useful-in-human-life) when you want to execute certain [applications](https://www.mindstick.com/articles/12847/how-to-choose-the-right-ethernet-cable-for-industrial-applications) after a certain interval.

[Drag and drop](https://www.mindstick.com/forum/454/how-to-drag-and-drop-multiple-image-from-one-canvas-to-onther-canvas-in-html5) Timer control from the toolbox on the [window Form](https://www.mindstick.com/forum/527/how-to-pass-datagridview-s-cells-value-to-another-window-form).

![Timer Control in VB.Net](https://www.mindstick.com/mindstickarticle/b6728da6-a509-43a4-a734-46cf9f0d7298/images/403d4021-bd51-4829-889c-bd8d9bc5cba0.png)

![Timer Control in VB.Net](https://www.mindstick.com/mindstickarticle/b6728da6-a509-43a4-a734-46cf9f0d7298/images/4adbc4bc-43be-4352-af7d-590da9a1364c.png)

### Code:

```
Public Class Form22 ' set Interval in Timer     Private Sub Form22_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)  Handles MyBase.Load         ' after 1000 milisecond time will update         Timer1.Interval = 1000     End Sub       Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)  Handles Timer1.Tick         'current time will update coontinuesly         Label1.Text = Now.ToLongTimeString.ToString()     End SubEnd Class
```

### Run the project

![Timer Control in VB.Net](https://www.mindstick.com/mindstickarticle/b6728da6-a509-43a4-a734-46cf9f0d7298/images/21386795-3cf0-4c1d-bcb4-7f8899148b95.png)

Time will [update](https://yourviews.mindstick.com/view/83443/g7-summit-update) continuously after every 1000 millisecond.

![Timer Control in VB.Net](https://www.mindstick.com/mindstickarticle/b6728da6-a509-43a4-a734-46cf9f0d7298/images/1b4f7fee-1d88-475b-ac18-00375806942e.png)

### Timer properties

**Interval:** Gets or sets the interval at which to raise the Elapsed event.

**Enabled:** Gets or sets a value indicating whether the Timer should raise the Elapsed event. By [default](https://www.mindstick.com/interview/12771/what-is-the-importance-of-default-resources), it set to false.

\

You should also read this [Article](https://yourviews.mindstick.com/view/81489/kashmir-now-after-an-year-of-abrogation-of-article-370) - **[Crystal Report with DataSet](https://www.mindstick.com/articles/610/crystal-report-with-dataset)**

---

Original Source: https://www.mindstick.com/articles/321/timer-control-in-vb-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
