Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 53,158 times

Contents

Related Categories

Timer control - Introduction

Introduction

The timer control allows a certain procedure to be called at an interval (ie every 1 minute). The timer control is not completely accurate, and if the computer is busy, the procedure will not be called, but it is still a good way, for example, to update a display every minute. 

Double click on the Timer icon when you have added it to your form. A code window will appear with a new procedure called Timer1_Timer(). This procedure is called each time the specified interval elapses:

Private Sub Timer1_Timer()
     '// this procedure is called
End Sub

James first started writing tutorials on Visual Basic in 1999 whilst starting this website (then known as VB Web). Since then, the site has grown rapidly, and James has written numerous tutorials, articles and reviews on VB, PHP, ASP and C#. In October 2003, James formed the company Developer Fusion Ltd, which owns this website, and also offers various development services. In his spare time, he's a 3rd year undergraduate studying Computer Science in the UK. He's also a Visual Basic MVP.

Comments