如何在Visual WebGui中使用.ico文件? [英] How to use .ico files in Visual WebGui ?

查看:73
本文介绍了如何在Visual WebGui中使用.ico文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我要在按钮中显示和图标.所以,首先:
1.我将添加到我的项目的资源目录中,然后添加了Incons子目录.
2.我已经将.ico文件复制到Incons子目录中,然后在VS中,通过将添加现有项"添加到Icons dir中,将此ico文件添加到项目中.
3.在表单中创建一个按钮,然后尝试在属性中添加图像.效果是无效的性质.."或类似的内容.

有人可以告诉我为什么吗?

谢谢,

Hi,
I want to display and icon in my button. So, first of all:
1. I add to my project Resources dir and than Incons subdir.
2. I''ve copied .ico file to Incons subdir, and than in VS by "Add existing item" to Icons dir add this ico file to the project.
3. Create a button in form and try to add image in properties. The effect was "Invalid properity.. " or sth like that.

Could somebody tell me why ?

Thanks,

推荐答案

对于按钮,您可以直接使用jpg格式.尝试一次.无需转换为.ico!
For buttons you can directly use jpg format. Give it a try once. No need to convert to .ico!


这篇关于如何在Visual WebGui中使用.ico文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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