The Timer control has a few important properties. They are pretty simple to use. But you must understand a few things:
(1) You must set the enabled property to True, before they start. Timer1.enabled = True
You can do this with a command button or have the property enabled at design time. By default it is not enabled at design time.
(2) You also must understand the interval property. Each tick of the timer is worth 1 millisecond. So, you need 1000 ticks for each second: Timer1.interval = 5000
That would give you 5 seconds.
And finally, (3). You must implement your desired code in the Timer event.
Private Sub Timer1_Timer()
' Code you wish to see occur.
' As previously posted here: [B]Unload Me[/B] should be a good choice.
' Many coders also use this event to turn the timer off: e.g. [B]Timer1.enabled = false[/B]
' A nice technique is the following: [B]Timer1.enabled = Not Timer1.enabled[/B]. This toggles the timer either on or off every time the Timer Event occurs.
End Sub
You'll find the area is automatically created for you in your IDE when you click on the only available event for the Timer control in Code View. Double clicking on the Timer Control on your form will do the same.