Mouse Move event will flicker

T

Tom

I have a form with an On_Mouse_Move event for all buttons
that changes the color of the button, and for the Page
Header Mouse_Move event it changes back the color of all
buttons.

Whenever I move the mouse on the Page Header section, all
buttons will flicker and blink.
Is this a computer problem or an Access problem?

Thanks
Tom
 
K

Kailash Kalyani

Most likely the event is called too many times hence the flicker. Mouse_move
is called everytime you move the mouse. So the event is activated several
times for a form or a button even when you never leave the button or the
form.

So you need to track where the last mouse move event occured. And if is
different, take action, otherwise skip.
 
T

Tom

I just used the same program on a different computer and I
have no problem.
Also, even it's repeating the same code; the button
doesn't have to flicker if no changes are made.
Where can I check?

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