Week #2 (Friday, January 19th 2001) example

Click the Netscape RELOAD or the Internet Explorer REFRESH button to see the animation and the 3 different cmdAnimate Captions again.


  1. Below here is the Visual Basic code window and the VB form window screen snapshot.

  2. Notice the Timer1 object is only visible at DESIGN time.

  3. Timer1.Interval is equal to 3500, which is the number of milliseconds between Timer1_Timer events. 1000 milliseconds = 1 second, so the Interval will be 3 1/2 seconds between Timer1_Timer() events.

  4. Timer1.Enabled is equal to False when the program begins, so the user has to click to command button to set the Timer1 object to "firing" once per second.

  5. The above animation should be studied carefully. Can you figure out what Visual Basic statement needs to be added to the code shown here when an extra feature was added to it by the programmer? There is something happening above that the code shown below in Private Sub Timer1_Timer() event procedure did not do. What is that something?