All examples of animation that you have learned in previous lessons only involve manual animation. In order to make it move automatically, you must use a timer. The first step in creating automatic animation is to drag the timer from the toolbox into the form and set its interval to a certain value other than 0. A value of 1 is 1 milliseconds which means a value of 1000 represents 1 second. The value of the timer interval will determine the speed on an animation.In the following example, we use a very simple technique to show animation by using the properties Visible=False and Visible=true to show and hide two images alternately. When you click on the program, you should see the following animation.
To learn the coding behind this animation, we suggest you obtain a copy of Visual Basic Made Easy.
AUTHOR: DR. LIEW VOON KIONG
VISUAL BASIC 6 MADE EASY is an eBook written by our webmaster, Dr.Liew. It was used as a textbook by the University of Wesleyan. You can use this book as a textbook for your VB course or project.
By reading this book, you can:
You can also use the book in many ways, such as:
Order this book and you can Download the FREE Source Codes for the sample VB6 programs illustrated in this book. Click the Order button below to get your e-book and the free stuff.
*Please wait for 10 seconds for PayPal to redirect you to E-book Download Page after ordering and making payment.
Mode of Delivery: Download
This site and the products and services offered on this site are not associated, affiliated, endorsed, or sponsored by Microsoft, nor have they been reviewed tested or certified by Microsoft.
If you require assistant and technical support, please contact:Admin