如何更改任务栏中的程序图标 (VB.NET)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14036634/
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 to change a program Icon in taskbar (VB.NET)
提问by C PWL
Would like to ask how can i set my own icon instead of default icon displayed by vb.net? Thanks in advance. It seems hard to find a solution in Google as i don't know what keyword should i search because all the result show me changing the .exe icon.
想问一下如何设置自己的图标而不是vb.net显示的默认图标?提前致谢。似乎很难在 Google 中找到解决方案,因为我不知道应该搜索什么关键字,因为所有结果都显示我更改了 .exe 图标。
Had tried to change the icon in project properties but it's not working..
曾试图更改项目属性中的图标,但它不起作用..
回答by Fauzi88
You can change icon form from properties form like this picture.
您可以像这张图片一样从属性表单更改图标表单。
回答by Krishanu Dey
The Icon you set on the above window is the default program icon. to change the taskbar icon you need to set the currently showing form's icon.
您在上述窗口中设置的图标是默认程序图标。要更改任务栏图标,您需要设置当前显示的表单图标。
回答by Avishek
Change your Form's icon prom the property tab of the form of your application. If there is a single form, you only need to change it, but if there's multiple, you need to change all of them individually.
在应用程序表单的属性选项卡上更改表单的图标。如果只有一个表单,您只需更改它,但如果有多个表单,则需要单独更改所有表单。
Hope it helps! :)
希望能帮助到你!:)