TaskbarIcon will not show balloon tip with custom

2019-05-21 19:35发布

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

1条回答
forever°为你锁心
2楼-- · 2019-05-21 19:59

Try using the "Large Icon" overload.

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

This worked for me.

查看更多
登录 后发表回答