Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NotifyIcon - mouse hover event? (VB.Net2005)

Status
Not open for further replies.

Ajb2528

Technical User
Feb 22, 2002
270
GB
Hi,

I have written a small applet in VB.Net 2005 that shrinks to the system tray. What I would like to do is to display a balloon tip instead of the value of the text property when the mouse is hovering over the icon in the system tray.

Can anyone help?

Regards,

Alan
 
The problem that I have is that there is no mousehover event on the NotifyIcon component.
 
Tipgiver,

I have tried using the mousemove event and the balloon does appear but then does not disappear until you end the applet thru visual studio!

 
Hmm, it works fine for me - I had tested it before posting.
 
Tipgiver,

Heres the code that I used...

Private Sub NotifyIcon1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseMove
NotifyIcon1.Text = "Test123"
NotifyIcon1.BalloonTipText = "Hello"
NotifyIcon1.ShowBalloonTip(1)
End Sub

Any ideas?

Regards,

Alan
 
It works fine too ! #$#

Just for info, the notify icon control can use the text as the tooltip's text. This appears when the user hovers the mouse. The *baloon properties are to inform the user of something (just like windows do). It is an alternative way ... against popup forms.
I am not sure if you can extend that control and assign to it a real 2.0 tooltexttip control
 
What OS are you running? XP? Cos we are running Win2K. I'm just wondering wether this may have something to do with the balloon not disappearing....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top