First of all make a timer. You can use the toolbar button to do this. After making the timer, which will be named Timer1, go to the properties window and find the interval property. It will be set to zero. Set this to 1. This will make the timer go pretty fast.
Double click on the timer, this will show its sub routine in the code window. Whatever is inside of this sub will be carried out every interval.
You can change the time of your interval while your program is running by typing:
Timer1.Interval = 1000
If for any reason you decide that you would like to make your timer stop, you do not have to set your timer interval to zero. You can disable your timer easily by typing:
Timer1.Enabled = False
To reactivate the timer just replace False with True.
You can download a sample program here.
Copyright ©2000 by Kyle Baker. Please read our disclaimer.