473,387 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

MouseHover doesn't work?

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
Jul 11 '06 #1
4 2325
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.coma écrit dans le message de news:
Oc****************@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


Jul 11 '06 #2
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.
"Patrice" <sc****@chez.comwrote in message
news:eg**************@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.coma écrit dans le message de news:
Oc****************@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



Jul 11 '06 #3
"Ronald S. Cook" <rc***@westinis.comschrieb:
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/>

Jul 11 '06 #4
Windows XP Pro/VS 2005 Pro/.NET Framework 2.0

"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:e3**************@TK2MSFTNGP03.phx.gbl...
"Ronald S. Cook" <rc***@westinis.comschrieb:
>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/>

Jul 11 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: JJay | last post by:
My application is written in C# and has several dialog Windows Forms. All button objects on all forms are using FlatStyle=Flat. I have background colors on each button and tool-tips describing...
0
by: jaxCtiDev | last post by:
My application is written in C# and has several dialog Windows Forms. All button objects on all forms are using FlatStyle=Flat. I have background colors on each button and tool-tips describing...
1
by: Sheriff | last post by:
Receiving a single mouseHover is simple, just move the mouse over my control and wait. However, following this mouse hover event, if I move the mouse around within the control and once again wait,...
1
by: Phenix Smith | last post by:
I am working on the component and would like to change a display when the user stops moving the mouse inside the control. I used the MouseHover and MouseMove to change the status, but the...
2
by: melanieab | last post by:
Hi, How can you determine which cell the mouse is positioned over during the mousehover event? Thanks so much! Mel
2
by: Rudiga | last post by:
Hi, I am trying to get this code to work just to check if i can trigger an event when the mouse goes over a button. But it doesnt seem to be working, can anyone help? void...
3
by: Marc | last post by:
Hi, I create buttons dynamically at runtime in my application. I want to open a messgae box when the user hovers over a button.how can i do this? i need something like the below(which doesnt...
12
by: Marc | last post by:
Hi, How can i increase the mousehover event timer? AddHandler NewBtn.MouseHover, AddressOf Shownotes Private Sub Shownotes(ByVal sender As System.Object, ByVal e As System.EventArgs)...
2
by: Pete Kane | last post by:
Hi All, I have an Winform app which sits in the System Tray ( sorry if this is not good grammar ) and accessed via NotifyIcon, is there a way I can capture a MouseHover event ? as the NotifyIcon...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.