c#。。。错误 无法将类型“System.Drawing.Bitmap”转换为“System.Drawing.Icon” 怎么解决?

2025-05-14 02:29:08
推荐回答(2个)
回答1:

notifyIcon1.Icon的属性必须是ICON 就是后缀是ico的文件
你看下你Resoures文件夹下的ser_stop文件 应该是图片格式 你找个转换程序自己转换成ico格式就OK

回答2:

this.notifyIcon1.Icon 你看是不是有
this.notifyIcon1.Icon.image或者this.notifyIcon1.Icon.picture或者this.this.notifyIcon1.Icon.src之类的