i need to move a button from left to right on a form, i.ve been told we have to use coding with sine in it but am not sure how this is done. already tried while loops (but may have been doing it wrong) any ideas??
Moving a button sinosoidally
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Scott LysleRank #49 · 31K reputationPosted Nov 28, 2006, 6:28 PM EST
Naturally you may define variables and increment and decrement them using a loop that describes moving something along a path that represents a sine wave by increasing the rise and run to a point and the continuing to increase the run while decreasing the rise. If the variables incremented and decremented in the loop are legitimate screen coordinates you can apply these to the top and left properties of the button and move it along an apparent sine wave-like path.