Mousemove event seems to fire continuously

E

Elaine K

I am trying to use the mouseup, mousedown and mousemove events to execute
some code in my application. I have tried everything yet the mousemove fires
continuously and the mouseup and mousedown events never execute. Right now I
have stripped the mousemove code down so that it does nothing but display the
button, shift, x and y values. The coordinates remain the same so I don't
think that the handler thinks I am moving the mouse, the button changes when
I depress the mouse button yet the mousedown still doesn't fire and the
mousemove keeps firing as long as the cursor remains in the same position.
Any suggestions on further troubleshooting?
Elaine
 
M

Mark A. Sam

Hello Elaine,

Are you using the MoveMove on an object? If so try the code on the
different object to see if you get the same problem. Maybe the object is
corrupt. You can also try making a new form and use the code there (don't
copy and paste any object onto the new form, create them new). You can also
try decompiling the form as well as creating object in a new db.

God Bless,

Mark A. Sam
 
E

Elaine K

Thank you for your suggestion. I tried one last thing that appears to have
made a difference. I moved my Msgbox code out of the Mousemove procedure and
the Mousedown and Mouseup started working again. It seems that Mousemove
didn't like having the displays generated from there even though I was using
the enter key to respond to the msgbox (and not the mouse). I moved the
displays into a procedure that I added to Mousemove and things are still
working fine.
Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top