从VS 05中的资源设置应用程序图标 [英] Set application icon from resources in VS 05

查看:141
本文介绍了从VS 05中的资源设置应用程序图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以在项目的Resources.resx文件中添加一个图标,然后在代码中引用该图标。

I know I can add a icon to the Resources.resx file of a project and then reference that icon from within the code.

如何设置图标资源的整个EXE?我只看到一个浏览另一个文件的地方。我想使用我的资源中的当前图标文件而不必在我的项目中有重复的文件...

How do I set the icon of the entire EXE from the resources? All I see is a place to browse for another file. I want to use the current icon file that I have in my resources and not have to have a duplicate file in my project...

谢谢

推荐答案

添加应用程序图标的方式是必须从本地文件系统中选择它,然后在构建时将其嵌入到应用程序中时间。据我所知,不可能首先从资源文件中提取它。

The way that the adding of an application icon is that you must select it from the local file system, and then it is embedded into the application at build time. As far as I know it is not possible to have it first pull from a resource file.

这篇关于从VS 05中的资源设置应用程序图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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