我可以改变我的程序托盘图标,而在C#中运行? [英] Can I change my programs tray icon while it runs in c#?

查看:136
本文介绍了我可以改变我的程序托盘图标,而在C#中运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想如果某事件发生时,使我的程序托盘图标改变颜色。 ?我可以把我的代码来改变托盘图标同时运行

I want to make my programs tray icon change colors if a certain event occurs. Can I set my code to change the tray icon while it runs?

推荐答案

只需设置的 NotifyIcon.Icon 属性的新图标来改变它。

Just set the NotifyIcon.Icon property to the new icon to change it.

这篇关于我可以改变我的程序托盘图标,而在C#中运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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