I’m trying to implement a custom control in C# and I need to get events when the mouse is hovered. I know there is the MouseHover event but it only fires once. To get it to fire again I need to take the mouse of the control and enter it again.
Is there any way I can accomplish this?
Let’s define “stops moving” as “remains within an
xpixel radius fornms”.Subscribe to the MouseMove event and use a timer (set to
nms) to set your timeout. Each time the mouse moves, check against the tolerance. If it’s outside your tolerance, reset the timer and record a new origin.Pseudocode: