MouseHover doesn't work?

R

Ronald S. Cook

I have a label on a Windows form. I have the following code which doesn't
work when I mouse over the label. Any idea why? If I change MouseHover to
MouseEnter it works. So, what good is MouseHover?

Private Sub Label1_MouseHover(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Label1.MouseHover
Label1.Text = "Yo mama"

End Sub



Thanks,

Ron
 
P

Patrice

Works fine here with MouseHover (and depending on what you are doing, Enter
might well be better here). Is this while something else is going on ?
 
R

Ronald S. Cook

This is weird. I create a VB.NET Windows project. I add Label1 to my
Form1. I add that code below. I run the app. I place the mouse over the
label and... nothing.
 
H

Herfried K. Wagner [MVP]

Ronald S. Cook said:
This is weird. I create a VB.NET Windows project. I add Label1 to my
Form1. I add that code below. I run the app. I place the mouse over the
label and... nothing.

Which Windows/.NET Framework versions are you using?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top