ssi49
asked on
Chase Mouse Have 95 Points
Hi, looking for code that will make a form chase the mouse. In other words, like where ever you move your mouse the form will follow. Working code please. Have 95 points or would offer more.
ssi49
ssi49
will code to clip, or keep the mouse in the form work?? Thats alot easier than making the form chase the mouse.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Maquiavelo
Thanks for the code. I am using vb 5.0 and when i run the program, the form doesn't do anything ? I move the mouse but the form just sits there. I pasted everything correctly. Any suggestions ?
Thanks
ssi49
Thanks for the code. I am using vb 5.0 and when i run the program, the form doesn't do anything ? I move the mouse but the form just sits there. I pasted everything correctly. Any suggestions ?
Thanks
ssi49
Be sure to set the timer interval to something other than 0, when 0 no timer events occur, interval = 1000 = 1 sec timer interval. So in this case, you may want to set the interval to 10:
timer1.interval = 10
timer1.enabled = true
Have you also pasted the sub Timer1_Timer into form1 (not into Module1)?
Also the me.move statement should be like this:
Me.Move a.x * Screen.TwipsPerPixelX, a.y * Screen.TwipsPerPixelY
Hope this helps...
timer1.interval = 10
timer1.enabled = true
Have you also pasted the sub Timer1_Timer into form1 (not into Module1)?
Also the me.move statement should be like this:
Me.Move a.x * Screen.TwipsPerPixelX, a.y * Screen.TwipsPerPixelY
Hope this helps...
ASKER
Works Real Nice, Thank You !
Thanks michaelv! I think you deserve some points... :)