Calling a function continuously
Posted on 1998-05-06
I wrote a function that moves an object across a form and bounces off the edges.. (each time the function is called, the object moves 2 pixels in a specified direction, if that movement causes it to exceed the edge of the form, I change the direction and move away from the edge)
How do I keep calling this function as long as my Form exist.
I want the object to keep moving around until I change a variable (by pressing a button)... I also want to be able to do other operations on this form (press other buttons...) without stopping the movement of my object?