Although Visual Basic 2008 is a programming language designed for creating business applications, it can be used to create animation. In this lesson, we shall illustrate to create animation with VB2008 through a few examples.
In VB2008, you can use the Top and Left properties of an object to create animation. The Top property defines the distance of the object from the topmost border of the screen while the Left property defines the distance of the object from the leftmost border of the screen.
By adding or subtracting the distance of the object we can create the animated effect of moving an object.Start a new project and name it as Movable Object, or any name you wish. Now insert a PictureBox and in its Image property import a picture from your hard drive or other sources. Next, insert four command buttons, change their captions to Move Up, Move Down, Move Left and Move Right. Name them as MoveUpBtn, MoveDowbBtn, MoveLeftBtn and MoveRightBtn.
To learn the details, we suggest you grab a copy of Visual Basic 2008 Made Easy.
AUTHOR: DR. LIEW VOON KIONG
VISUAL BASIC 2008 MADE EASY is an eBook written by our webmaster, Dr.Liew to complement our Online Visual Basic 2008 Tutorial. It has more contents than the free online tutorial.
By reading this book, you can:
*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.