none
MouseHover event cannot be intercepted in a UserControl RRS feed

  • Pregunta

  • Hello...

    I am developing a Winforms User control.  I need that when the mouse passes over the control, it changes its look indicating that condition. I want the control itself to control that behavior, not the containing form.

    I tried overriding OnMouseHover method in the control but it never gets called. The only time it was called, was when I use Capture = true in control constructor. But after that, the method never get called again.

    The idea is that the containing form doesn't need to worry about that behavior.

    Is there a way to do it?

    Thanks
    Jaime 
    Powered by C++
    viernes, 29 de mayo de 2009 14:29

Respuestas