TaskbarIcon will not show balloon tip with custom icon

独自空忆成欢 提交于 2020-01-23 11:58:26

问题


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:


Try using the "Large Icon" overload.

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

This worked for me.



来源:https://stackoverflow.com/questions/34804717/taskbaricon-will-not-show-balloon-tip-with-custom-icon

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!