Home All Groups Group Topic Archive Search About

MouseHover doesn't work?

Author
11 Jul 2006 4:51 PM
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

Author
11 Jul 2006 5:32 PM
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 ?

--
Patrice

"Ronald S. Cook" <rc***@westinis.com> a écrit dans le message de news:
OcqP%23oQpGHA.1***@TK2MSFTNGP04.phx.gbl...
Show quoteHide quote
>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
>
>
Author
11 Jul 2006 5:43 PM
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.


Show quoteHide quote
"Patrice" <scr***@chez.com> wrote in message
news:egk3KARpGHA.4932@TK2MSFTNGP05.phx.gbl...
> 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
> ?
>
> --
> Patrice
>
> "Ronald S. Cook" <rc***@westinis.com> a écrit dans le message de news:
> OcqP%23oQpGHA.1***@TK2MSFTNGP04.phx.gbl...
>>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
>>
>>
>
>
Author
11 Jul 2006 7:17 PM
Herfried K. Wagner [MVP]
"Ronald S. Cook" <rc***@westinis.com> schrieb:
> 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?

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
11 Jul 2006 8:11 PM
Ronald S. Cook
Windows XP Pro/VS 2005 Pro/.NET Framework 2.0

Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:e3hQy6RpGHA.4848@TK2MSFTNGP03.phx.gbl...
> "Ronald S. Cook" <rc***@westinis.com> schrieb:
>> 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?
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>