ShowBalloonTip Not Working

妖精的绣舞 提交于 2019-12-01 16:00:48

问题


On Windows 10, the ShowBalloonTip method of NotifyIcon NEVER shows the balloon tip. This would appear to have something to do with Windows itself.

If I go to Settings > System > Notifications & actions > and find my running app (vshost32.exe in debug mode) and click on it, then turn on Show notifications in the action center, I can clearly see the balloon tip messages being added to the notifications, but never a balloon tip.

I assume this is a problem with Windows 10.

My NotifyIcon is VISIBLE

my_icon.ShowBalloonTip("Title", "Message", BalloonIcon.Info);

回答1:


Found the problem - was simple: Quiet Hours was turned on in the notification center and this was preventing the balloon tips.




回答2:


On my computer with Windows 10 version 1803, go to Settings > System > Notifications & actions, and turn on "Get notifications from apps and other senders". The ballontips from my WPF app will show up.




回答3:


Neither of these solved my issue :(

But by accident I fixed it! My problem was I had my project configured for 32-bit on a 64-bit platform and for whatever reason they only show up when when I run the project for Any CPU (64-bit in this case)!!

Hopefully that helps some of you, it was a real mystery for me...

(I also posted this answer here because these are duplicate questions)



来源:https://stackoverflow.com/questions/42444541/showballoontip-not-working

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