Chapter 15 Adding Graphics and Animation Effects 391
To Do This
Move an object on
a form
Relocate the object by using the Location property, the New keyword,
and the Point structure. For example:
PictureBox1.Location = New Point(300, 200)
Animate an object Use a timer event procedure to modify the Left, Top, or Location
property for an object on the form. The timer’s Interval property
controls animation speed.
Expand or shrink
an object at run time
Change the object’s Height property or Width property.
Set the background
color on a form
Change the form’s BackColor property.
Set the background
image on a form
Change the form’s BackgroundImage property.
Change the
transparency of a form
Change the form’s Opacity property.