C#参数“图象”必须是可以被用作图标的画面 [英] C# Argument 'picture' must be a picture that can be used as an Icon
问题描述
我无法导入一个图标插入我的应用程序。我有一个主要形式,我试图导入它通过图标
字段一个新的图标在属性
。
I am having trouble importing an icon into my application. I have a main form and I am trying to import to it a new icon via the Icon
field in Properties
.
图片已经在 .ICO
格式:这是链接到我试图使用的图标。
The image is already in .ico
format: this is the link to the icon I'm trying to use.
有谁知道为什么微软的Visual工作室会显示这个错误?
Does anyone know why Microsoft Visual Studio would be displaying this error?
任何帮助将是巨大的。
推荐答案
第二次重启之后,然后打开并重新保存.ICO自己在GIMP,那么我能够导入它没有任何错误。不太清楚是什么原因导致这个问题,但它只是一个怪胎错误。
After a second restart and then opening and re-saving the .ico myself in Gimp, then I was able to import it without any errors. Not too sure what caused this problem but it was just a freak error.
这篇关于C#参数“图象”必须是可以被用作图标的画面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!