mouse move event

G

Gilbert 2097

I was wondering if anyone can steer me to a good article on what can be done
with mouse move. I've played with it a while and can't get a firm grasp of
how to use it. Say I have 10 textboxes and as I move the mouse over them I
want the one it's on to change to red and then when I move off of it to
change back...or if I move the mouse on a textbox, can I get any information
about it like the name of the textbox I am on or any of its properties?? I'm
using ACC2003 (still)

Thanx so much,
 
A

Allen Browne

The MouseMove event fires when you move the mouse over the object.
Unfortunately, there is no matching MouseExit for when the mouse moves
away, so you have to use the MouseMove of other controls and of the
(Detail?) section of the form to achieve that.

The MouseMove fires constantly as you move the mouse over the control, so if
you are planning to change properties (such as setting BackColor to vbRed),
this could be very inefficient and flickery if you don't first test whether
the property is already set correctly, and only set it if necessary.
 

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

Similar Threads


Top