I just want to , for example, move a ball or an object in a pictureBox, randomly, and make it rebound on the "wall" of the picturebox.

What api function should I use ? .. how?