Timer Control and its Properties

Timer control is an actual control that is sited on a form at design time; however it is not visible at run time. You can disable a Timer control by setting the Interval property to 0.

Code Changes for Starting and Stopping a Timer Control

The following code demonstrates how to enable and disable a Timer control at run time.

‘ Visual Basic 6.0

Public Function TimerOn(Interval As Integer)

If Interval > 0 Then

‘ Start the timer.

Timer1.Interval = Interval


‘ Stop the timer.

Timer1.Interval = 0

End If

End Function

Timer Properties and Events

  • Index property
  • Interval property
  • Parent property
  • Timer event

Reference material. Microsoft Help Menu in Visual basic 6.0 Enterprise Version.

4 thoughts on “Timer Control and its Properties

  1. Pingback: Visual Basic .NET 2010 Express – A “From the Ground Up” Tutorial « Visual Basic

  2. Pingback: QP: Visual Basic | iiteeeestudents

  3. Pingback: stress management program | Smart Stress Management

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s