如何替换 C# windows 窗体可执行应用程序图标?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3286729/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 14:52:40  来源:igfitidea点击:

How can I replace C# windows forms executable application icon?

c#windowsvisual-studio-2005icons

提问by Nano HE

I already finished my development. But I don't like the windows icon for the executable application.

我已经完成了我的开发。但我不喜欢可执行应用程序的 Windows 图标。

How to replace the default windows icon with my favorite one? Thanks.

如何用我最喜欢的图标替换默认的 Windows 图标?谢谢。

回答by James Manning

http://bytes.com/topic/c-sharp/answers/467947-how-set-icon-winform

http://bytes.com/topic/c-sharp/answers/467947-how-set-icon-winform

First is the Project configuration properties where you have set the Application icon. The other is in each individual form's properties where you set the Form's icon - which can be the same icon

首先是您设置应用程序图标的项目配置属性。另一个是在每个单独的表单的属性中,您可以在其中设置表单的图标 - 可以是相同的图标