显示无限时间通知图标 [英] Show Notify Icon for Unlimited Time

查看:106
本文介绍了显示无限时间通知图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Windows应用程序.我可以在系统托盘中无限期显示通知图标吗?

请让我知道.

I am working on Windows Application. Can I show notify icon in system tray for unlimited time?

Please let me know.

推荐答案

为什么要这样?
一次只能在任务栏上显示一个气球提示.尝试在任务栏上当前显示气球提示时显示气球提示会导致超时值被忽略.该行为略有不同,具体取决于操作系统以及气球提示是来自其他应用程序还是来自相同的应用程序.当第二个气球提示来自另一个应用程序时,第一个气球提示将在第二个提示出现之前显示最小超时值,而不管超时值如何. (MSDN)
您可能需要一些定制的东西.从这里开始:
http://stackoverflow.com/questions/8836463/how-to-create-rich-tooltips-and-rich-balloons-in-notification-area [ ^ ]
WPF任务栏通知程序-WPF任务栏通知窗口 [ ^ ]
Why do you want that?
Only one balloon tip can display on the taskbar at a time. Attempting to display a balloon tip when one is currently displayed on the taskbar causes the timeout value to be ignored. The behavior is slightly different depending on the operating system and whether the balloon tip is from another, or the same, application. When the second balloon tip is from another application, the first balloon tip will display for the minimum timeout value before the second appears, regardless of the value of timeout. (MSDN)
You probably need something custom. Start here:
http://stackoverflow.com/questions/8836463/how-to-create-rich-tooltips-and-rich-balloons-in-notification-area[^]
WPF Taskbar Notifier - A WPF Taskbar Notification Window[^]


时间是ShowBalloonTip` notifyIcon
请解释更多...
time is ShowBalloonTip` notifyIcon
plz explain more...


这篇关于显示无限时间通知图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆