http://www.vb-helper.com/HowTo/bounce1.zip
Purpose
Animate a bouncing ball on a background.
Method
Use BitBlt to erase the ball. Then draw the ball in its new location. When
the ball gets too close to the edge of the picture, reverse the sign of its
X or Y velocity.
Disclaimer
This example program is provided "as is" with no warranty of any kind. It is
intended for demonstration purposes only. In particular, it does no error
handling. You can use the example in any form, but please mention
www.vb-helper.com.
Downloads
In IE right-click and select 'Save Target As...' or in Netscape
right-click and select 'Save Link As...'
View Plain Text
Download Demo Project
Not Available