How can I make a ball bounce up and down on a line at the bottom of my form, and look like it's realistically bouncing? I know I will have to do somthing with gravity, but I don't know exactly how to do it. I am using this to define my ball area:

VB Code:
  1. Type UserObject
  2.      top as long
  3.      left as long
  4.      bottom as long
  5.      right as long
  6. End Type
  7. Dim Ball as UserObject

I don't know what code I need to put in a loop, or even how to structure it. Eventually I want to make a sort of volleyball game, but for now I just want to make a ball bounce.

Thanks
-Joey