使用C#应用程序图标不正确地更改 [英] Application Icon doesn't change correctly using c#

查看:775
本文介绍了使用C#应用程序图标不正确地更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我改变了我的应用程序的图标为一个新的,由去:项目/ MyProject的属性/图标Manifiest,并加载了新的图标。现在,在我的debug文件夹我的exe文件的图标,出现新的图标,这是确定的,但是当我执行.exe文件,任务栏中的应用程序图标仍然显示旧的。

I changed my Application's icon for a new one, by going to: "Project/MyProject Properties/Icon and Manifiest", and load the new icon. Now, in my debug folder the icon of my .exe file appear with the new icon, which is ok, but when I execute the .exe, the application icon in the taskbar still showing the old one.

请咨询。

推荐答案

您有两个地方要改变你的图标。

You have two place to change your icon.

第一个地方是在项目中。

The first place is in the project.

  1. 右键单击该项目
  2. 选择属性
  3. 是application标签
  4. 选择图标清单,然后选择你想要的图标

第二个地方是在你的Winform的属性。

The second place is in the property of your Winform.

  1. 打开表
  2. 单击窗体上
  3. preSS F4或走在表格
  4. 的属性
  5. 下去的属性查找图标
  6. 选择您想要的图标。

在任务栏中有一个不同的图标,你的应用程序文件(.exe)的图标是任务栏使用当前形式的图标在任务栏中显示的原因。

The reason that in the taskbar you have a different icon that you application (.exe) icon is that the taskbar use the current form icon to display in the taskbar.

这篇关于使用C#应用程序图标不正确地更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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