vb.net .exe 中的 VB 图标不会改变

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

VB icon won't change in .exe

vb.netdebuggingiconsrelease

提问by Thomja

I have made a simple program that is pretty much useless but I have made it for practice to get some training. I have managed to set the icon that shows up when the program is running to the one I want but not the icon that appears when you highlight it in windows.

我制作了一个几乎没用的简单程序,但我已经将它用于练习以获得一些培训。我设法将程序运行时显示的图标设置为我想要的图标,而不是在 Windows 中突出显示它时出现的图标。

This image explains it.

这张图片解释了它。

http://img542.imageshack.us/img542/3329/myicons.jpg

http://img542.imageshack.us/img542/3329/myicons.jpg

So the icon that the arrow points at is the one that I want to be the same as the icons that ive marked with circles. I have tried to build this in debug and release mode but nothing fixes it. I have set the icon in 2 places shown below

所以箭头指向的图标是我希望与我用圆圈标记的图标相同的图标。我试图在调试和发布模式下构建它,但没有任何修复它。我在下面显示的 2 个地方设置了图标

http://pastebin.com/Wv8PpYh4

http://pastebin.com/Wv8PpYh4

To avoid clogging up the page I added the 2 image links in pastebin

为了避免堵塞页面,我在 pastebin 中添加了 2 个图像链接

Thanks for any help!!! <3

谢谢你的帮助!!!<3

采纳答案by James

You can set the application icon in the application properties. Right click the project and choose properties or choose project propeties from the project menu. The first option on the right is "application".

您可以在应用程序属性中设置应用程序图标。右键单击项目并选择属性或从项目菜单中选择项目属性。右边的第一个选项是“应用程序”。

There is an option to set icon there

有一个选项可以在那里设置图标