Chapter 15 Adding Graphics and Animation Effects 391
To Do This
Move an object on
a formRelocate 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 timeChange the object’s Height property or Width property.Set the background
color on a formChange the form’s BackColor property.Set the background
image on a formChange the form’s BackgroundImage property.Change the
transparency of a formChange the form’s Opacity property.