系统托盘中的 Winforms 通知图标重复 [英] Winforms Notification Icon duplicates in the System Tray
问题描述
我正在处理 WinForms 应用程序,必须在系统托盘中显示应用程序图标(通知图标).一切正常.但是当我从主页面转到子页面并返回并检查系统托盘时,系统托盘中有2个通知项目.再次当我转到另一个页面并查看时,系统托盘中出现另一个重复的图标.当我转到另一个页面并返回时,通知图标的数量会增加.
I am working on a WinForms application and have to show the Application Icon(Notification Icon) in the System tray. Things working fine. But when I go to a sub page from the main page and come back and check the system tray It has 2 notification Items in the system tray. Again When I go to another page and see, another duplicate Icon appears in the system tray. Like that the number of notification icons gets increase when i go to another page and come back.
如果有人能指导我哪里出错了,真的很感激.提前致谢...
If someone can Guide me where I have gone wrong, really appreciate. Thanks in advance...
推荐答案
由于您没有提供任何代码,我将继续进行预感和幸运猜测:
Since you're not giving any code, I'm gonna go on hunches and lucky guesses:
- 您为生成通知图标而实施的逻辑会在您更改应用中的页面时发生的事件上执行.(可能)
- 在你的电脑里住着一只花栗鼠,他觉得星期一是大师傅的日子.(不太可能)
这篇关于系统托盘中的 Winforms 通知图标重复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!