3

I have created a WPF app which is using WPF NotifyIcon.

I am unable to get the ShowBalloonTip method to work with a custom Icon. I have tried like this:

_icon.ShowBalloonTip("Title", "Message", new Icon("Icons/accept.ico"));

Any idea how I can get a notification to work with a custom icon? (Using the built in icons works fine - i.e. using BalloonIcon).

nickela125
  • 147
  • 1
  • 2
  • 10
  • Is the path to your icon correct? – Mike Eason Jan 15 '16 at 08:53
  • Yes I'm pretty sure that is correct. I have also tried using the icon from my TaskbarIcon object which is showing correctly in the tool bar: `_icon.ShowBalloonTip("Title", "Message", _icon.Icon);` No luck with that either – nickela125 Jan 16 '16 at 04:13

1 Answers1

4

Try using the "Large Icon" overload.

   _icon.ShowBalloonTip("Title", "Message", new Icon("Icons/accept.ico"), largeIcon: true);

This worked for me.

JordanTDN
  • 181
  • 1
  • 12