Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: How do I get a label & button to change when mouse is over it?


Message #1 by "Nigel Spicer" <spicerman@t...> on Fri, 12 Oct 2001 19:35:47
This operation is much more harder to do than it seems.

Although all the suggestions are correct, they all fail
when the label container does not receive the MouseMove
event. This happens in two occasions: the user moves the
mouse very fast or there is another window overlapping
the label, and the mouse move from the label to that
window. I tried to use SetCapture and Release capture,
but I found another set of problems...

The safest way to handle this problem is to use another
component, that exposes the MouseEnter and MouseLeave
events, instead of the Label.

m.



  Return to Index