Systray Icon

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
 
T

The Grim Reaper

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
 
N

Nate

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
 
C

Chris Dunaway

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.
 
N

Nate

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.
 
N

Nate

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.
 
N

Nate

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.
 
N

Nate

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.
 

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