C#-更改任务栏的图标 [英] C# - Changing the icon of the taskbar

查看:815
本文介绍了C#-更改任务栏的图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改软件任务栏上的图标,所以我更改了项目设置.此路径是Visual Studio本身建议的

I want to change the icon on the taskbar of my software, so I changed the project settings. This path was suggested by Visual Studio itself

但是我的任务栏仍然显示与以前相同的图标(标准图标)-在我的资源管理器中,.exe具有正确的图标,只是在任务栏中不会更改.

But my taskbar still shows the same icon as before (the standard one) - In my Explorer the .exe has the correct icon, it just won't change in the taskbar.

我也尝试结束explorer.exe并重新启动任务,但这根本没有帮助. 我还尝试将分辨率设置为16x16和32x32,但都无法正常工作.

I also tried to end explorer.exe and restart the task, but this didn't help at all. I also tried to set the resolution on 16x16 and 32x32 but both didn't work.

推荐答案

您还需要在表单中添加该图标.应用程序图标是嵌入在应用程序中并显示在资源管理器或快捷方式中的图标.不过,每种形式都可以有自己的图标.

You need to give your form that icon as well. The application icon is the one that is embedded in the application and displayed in Explorer or on shortcuts. Each form can have its own icon, though.

这篇关于C#-更改任务栏的图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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