Search code examples
c#mousemousemovemousehovermouseup

MouseHover event doesn't work


I have a problem with the event MouseHover (the same problem with MouseEnter/MouseMove/...). It doesn't work. The text doesn't change.

private void button1_MouseHover(object sender, MouseEventArgs e)
    {
        button1.Text = "text changed";
    }

Could somebody explain me why it doesn't work ?

Thanks !


Solution

  • Make sure that the event method you posted is tie up with the component you are expecting it to dispatch the event.