NotifyIcon问题 [英] NotifyIcon Problem

查看:64
本文介绍了NotifyIcon问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序有一个通知图标,但在应用程序退出后,图标仍然是可见的b $ b,然后当我多次查看应用程序时,我会得到多个图标,所以

我的状态记录不断累积它们变为无法使用的b $ b。我发现的唯一解决方法是重新启动。不是godd解决方案。

如何让这个停止发生?


环境C#,VS.Net 2003,XP专业版


谢谢,


JIM

My app has a notify Icon, but after the app exits, the Icon is still
visible, and then when I runthe app multiple times I get multiple icons so
that my status bas keeps accumulating them to the point it becomes
un-usable. The only fix I have found is to re-boot. Not a godd solution.
How do I get this to stop happening?

Environment C#, VS.Net 2003, XP Pro

Thanks,

JIM

推荐答案

这件事发生在我身上。如果你滚动图标并远离它,

它将消失(如果应用程序不再运行)。我相信它是框架中的一个

错误。

This happens for me to. If you scroll over the icon and away from it,
it will disappear (if the app is no longer running). I believe it is a
bug in the framework.


你在exit()例程中可以做的是做a:


WSNotifyIcon.Visible = false;


将隐藏和删除托盘中的图标。现在,当你再次运行

应用程序时,不会有几个幻影图标。


james写道:
What you can do in your exit() routine is to do a:

WSNotifyIcon.Visible=false;

which will hide and remove the icon from the tray. Now when you run the
app again there will not be several ghosted icons behind.

james wrote:
我的应用已经一个通知图标,但在应用程序退出后,图标仍然可见,然后当我多次查看应用程序时,我会得到多个图标,以便我的状态库不断累积它们到达<不可用。我发现的唯一解决方法是重新启动。不是一个很好的解决方案。
如何让这个停止发生?

环境C#,VS.Net 2003,XP专业版

谢谢,

JIM
My app has a notify Icon, but after the app exits, the Icon is still
visible, and then when I runthe app multiple times I get multiple icons so
that my status bas keeps accumulating them to the point it becomes
un-usable. The only fix I have found is to re-boot. Not a godd solution.
How do I get this to stop happening?

Environment C#, VS.Net 2003, XP Pro

Thanks,

JIM



这只对我有用。它似乎没有用,当我

有很多,只有当我有一两个,而不是10


谢谢,


JIM


" Poietes" < YK ****** @ gmail.com>在消息中写道

news:11 ********************** @ f14g2000cwb.googlegr oups.com ...
This only work some of the time for me. It does not seem to work when I
have a lot of them, only when I have one or two, not 10

thanks,

JIM

"Poietes" <yk******@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
这件事发生在我身上。如果您滚动图标并远离它,
它将消失(如果应用程序不再运行)。我相信这是框架中的一个错误。
This happens for me to. If you scroll over the icon and away from it,
it will disappear (if the app is no longer running). I believe it is a
bug in the framework.



这篇关于NotifyIcon问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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