0

How to change background color and text of notifyIcon component?

enter image description here

TaW
  • 53,122
  • 8
  • 69
  • 111
Davoss
  • 21
  • 3
  • At least the Text is a simple property. – TaW Aug 14 '15 at 21:04
  • That's not a NotifyIcon, that's a balloon tip. Displayed by Explorer, not your program. The user is very familiar with what they look like already, no need for a hotdog-stand color scheme. Well, not like you *could* change it if you wanted to. – Hans Passant Aug 14 '15 at 22:56

1 Answers1

0

For the text, you want the BalloonTipText property:

var notifyIcon = new NotifyIcon();
notifyIcon.BalloonTipText = "Your string here";

However the balloon's background color cannot be set using this type. If you really must change it, you can instead use the Shell_NotifyIcon function in the Win32API, as described here.

Justin R.
  • 23,435
  • 23
  • 108
  • 157