views:

35

answers:

1

Hi,

I am creating a NotifyIcon and then calling this to show a balloon-tip from the system tray:

_trayIcon.ShowBalloonTip(100000, notifierTitle, notifierText, ToolTipIcon.Info);

Everything works fine but I wondered: is there any way to format the text in a system tray tooltip? (In my case, notifierText)

Obviously, I am adding newline characters etc. but I would like certain parts to be bold or italic and maybe even add blue hyperlinked text to separate lines in the tooltip.

I am aware of the events that are available and they don't cover this sort of thing.

I'm sure I've seen it done elsewhere...

So is it possible, and if so, how do I do it??

A: 

There's a ever so slight hint that this might be possible if you run on Vista or higher. From the documentation of NOTIFYICONDATA:

When uVersion is set to NOTIFYICON_VERSION_4, the standard ToolTip is replaced by the application-drawn pop-up user interface (UI)

But with any hints whatsoever how to actually make this work. Googling for +NOTIFYICON_VERSION_4 +ToolTip doesn't produce anything relevant. It also isn't wrapped by the Windows API Code Pack. I'm guessing that it takes listening for callback notifications.

At any rate, you will have to completely replace the NotifyIcon class to make this work. Maybe your google fu can get you a better hit.

Hans Passant