从资源中更改notifyIcon1
本文关键字:notifyIcon1 资源 | 更新日期: 2023-09-27 18:06:53
这段代码从外部文件中召回一个图标:
notifyIcon1.Icon = new Icon("notifier.ico");
如果可能的话,从资源文件更改图标?
notifyIcon1.Icon = new Icon(Properties.Resources.ResourceManager.icon2);
Properties.Resources.icon2
已经是Icon
了