custom button MouseLeave event
Posted
by
Jelle
on Stack Overflow
See other posts from Stack Overflow
or by Jelle
Published on 2010-12-23T22:32:48Z
Indexed on
2010/12/24
1:54 UTC
Read the original article
Hit count: 538
Hi,
I made a custom button with some panels and pictureboxes. With the MouseEnter and MouseLeave I set the appropriate hover images like normal buttons.
The problem is that if I move the mouse too fast over the control it sometimes doesn't trigger the MouseLeave event. This way the button is "locked" in hover state.
screenshot problem: http://www.jesconsultancy.nl/images/screens/screen_prblm.png
the button at the right is locked in "hover" state.
How can i solve this?
Thanks.
© Stack Overflow or respective owner