C# 你如何在 Visual Studio 中为 .exe 提供一个 ico 图像?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1889817/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do you give an .exe an ico image in Visual Studio?
提问by Finglas
I have the application using an .ico image for the taskbar and window, but how do you set up the .exe to use an icon?
我的应用程序使用 .ico 图像作为任务栏和窗口,但是如何设置 .exe 以使用图标?
While on this subject does anyone have any resources on how to work with ico images? As in what size does the start bar use, and so forth?
在这个主题上,有没有人有任何关于如何使用 ico 图像的资源?比如起始栏使用什么尺寸等等?
From what I can find there are tools out there to assign .exe's icon images but this is surely not the correct way of doing things.
据我所知,有一些工具可以分配 .exe 的图标图像,但这肯定不是正确的做事方式。
Thanks in advance.
提前致谢。
采纳答案by Sonny Boy
You can change the application icon from Common Properties -> General -> Application Icon
您可以从通用属性 -> 常规 -> 应用程序图标更改应用程序图标
回答by Daniel A. White
Here are guidelines to the Vista standard for icons.
以下是图标的 Vista 标准指南。
回答by Cheeso
To work with .ico images I use Axialis Icon Workshop.
要处理 .ico 图像,我使用Axialis Icon Workshop。
It can create or manipulate Vista Icons, XP Icons, etc.
它可以创建或操作 Vista 图标、XP 图标等。
回答by Sonny Boy
As for icon creation/edit resources, I usually just use GIMP. It's probably not the best tool for the job but it's free and easy to use.
至于图标创建/编辑资源,我通常只使用 GIMP。它可能不是这项工作的最佳工具,但它免费且易于使用。
回答by Mathias
回答by Ayyala
If your are using Visual Studio 2013, you can: 1. Right click on your project and select properties. 2. In the new tab it opens, you can find the "icon and manifest" under Application tab where you can set the new icon
如果您使用的是 Visual Studio 2013,您可以: 1. 右键单击您的项目并选择属性。2.在它打开的新选项卡中,您可以在应用程序选项卡下找到“图标和清单”,您可以在其中设置新图标