C# 中的清理/刷新托盘区域
当隐藏我的托盘图标并关闭应用程序时,我的应用程序的托盘图标有一半的时间会“卡住”。直到你在托盘区闲逛时,意义才消失。
我知道要在关闭期间进行清理,我可以执行trayIcon.Dispose()
,但这仅适用于我关闭 C# 应用程序时,并且不适用于我隐藏(trayIcon.Visible = false
)它的时候。
有谁知道黑客,或者无论如何,可以用来刷新托盘区域,或者只是确保我的图标实际上停止显示?
When either hiding my tray icon and closing the application, half the time my application's tray icon gets 'stuck'. Meaning doesn't leave until you mess around in the tray area.
I know that to clean up during closing I can do trayIcon.Dispose()
but that only works for when i close my C# application, and not for when I hide (trayIcon.Visible = false
) it.
Does anyone know of a hack, or anyway at all, that can be used to refresh the tray area, or just make sure my icon actually stops displaying?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论