Systray Icon

  • Thread starter Thread starter Nate
  • Start date Start date
N

Nate

ok,

So .net makes it pretty easy to add a systray icon now. However, does
anyone know of a way to force the text (tooltip) to appear. Instead of it
only appearing when the mouse goes over it can it be forced to appear for
say 5 seconds?

Any help would be greatly appreciated. Thanks.

Nate
 
Nate,

In the System.Windows.Forms.NotifyIcon object, there is a method called
ShowBalloonTop(), which accepts a parameter for the display time.

HTH
________________________________________
The Grim Reaper
 
Mr. Reaper

I'm played around with .net and having a hard time getting this bit of code
to work. Could your provide a example code sniplet?

Nate
 
Nate said:
Mr. Reaper

I'm played around with .net and having a hard time getting this bit of code
to work. Could your provide a example code sniplet?

It's simple code. Example is in the docs:

notifyIcon1.BalloonTipTitle = "Balloon Tip Title"
notifyIcon1.BalloonTipText = "Balloon Tip Text."
notifyIcon1.BalloonTipIcon = ToolTipIcon.Error

notifyIcon1.ShowBalloonTip(30) 'Shows the ballon tip for 30
milliseconds

It's not that hard.
 
Odd why do I get the following error?

'ShowBalloonTip' is not a member of 'System.Windows.Forms.NotifyIcon'.

I did a search in the help documents 'showballoontip' comes back with
nothing.
 
Odd why do I get the following error?

'ShowBalloonTip' is not a member of 'System.Windows.Forms.NotifyIcon'.

I did a search in the help documents 'showballoontip' comes back with
nothing.
 
Odd why do I get the following error?

'ShowBalloonTip' is not a member of 'System.Windows.Forms.NotifyIcon'.

I did a search in the help documents 'showballoontip' comes back with
nothing.
 
I thought this was a vb (Visual Basic) newsgroup and not C#?
That sample project does what I want but I'm not knowledgeable enough in C#
to take it apart.
 
Back
Top