Mousemove event problems

G

Guest

I'm using the mousemove event to make my listboxes drop-down (by increasing
height property). I have three listboxes in a row vertically. However, I find
that the mousemove event of the listboxes below gets triggered when I move
the cursor over them even though I'm still in the first listbox. Is there a
way to disable the mousemove event for the listboxes underneath the one I am
currently in? Or, is there a better way to do this?
 
G

Guest

Probably. So many languages, so few brain cells left...

Anyway, I just read up on the MouseDown event. That requires a mouse button
to be pressed. Perhaps that might localize the event a little better?
 
L

Linq Adams via AccessMonster.com

As you've discovered, MouseMove doesn't care where the focus is, if the mouse
moves over a control the event triggers! Why not move your code to the
GotFocus event for each box?
 

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