Mousemove event problems

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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?
 
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?
 
Back
Top