C#更改winform左上角的图标 [英] C# Change the icon on the top left of winform

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

问题描述

我正在尝试将winform的左上角图标从默认值更改为我的图标:

I'm trying to change the top left corner icon of the winform from the default one to my icon:

我已经通过转到我的项目的属性尝试了它,然后进入应用程序,设置我自己的图标吧图标和清单。

I've tried it by going to the Properties of my project, and go into Application, the set my own icon it in "Icon and Manifest".

但在此之后,它仍会显示相同的旧默认图标。我做错了吗?

But after that, it still show the same old default icon. Is there something I done wrong?

推荐答案

您的表单与属性相关联(在设计模式下) ,将焦点放在表单上,​​然后单击 F4 )。其中一个属性是 Icon ,这就是你要找的东西。

Your form has properties associated with it (in design mode, have the focus on your form and click F4). One of the properties is Icon and this is what you're looking for.

你所指的图标,在应用程序属性中,是将在.EXE生成的文件中使用的图标。

The icon you are referring to, in Application Properties, is the icon that will be used in the .EXE generated file.

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

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