i am working on a room locator program, the feature includes the room location and the path that the searchee can take to locate the room. is there a way to move a control in a vb application just like what we see in flash applications? thanks for the ideas :))

4 Years
Discussion Span
Last Post by Eternal Newbie

Tried this once, actually, my button did go like an old motorbike :D
My solution was Using .top and .left property and a timer.
Clicking the destination start the timer, every tick myBtn move ((myDestination.top-myBtn.top)+(myDestination.left-myBtn.left))/1000n (using n makes sure you can handle the time your object move).
First I increase myBtn.top to where myBtn.top = myDestination.top I will start increase myBtn.Left to myBtn.Left = myDestination.Left.
When myBtn.Left = myDestination.Left and myBtn.top = myDestination.top I stop my Timer.
Ha ha, pretty simple huh =))

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.