C#参数“图象”必须是可以被用作图标的画面 [英] C# Argument 'picture' must be a picture that can be used as an Icon

查看:6326
本文介绍了C#参数“图象”必须是可以被用作图标的画面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法导入一个图标插入我的应用程序。我有一个主要形式,我试图导入它通过图标字段一个新的图标在属性

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屋!

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