在Windows中哪里可以找到默认的Winforms图标? [英] Where to find the default Winforms icon in Windows?

查看:339
本文介绍了在Windows中哪里可以找到默认的Winforms图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为这是Windows中的某个共享资源。有没有一种方法可以使用这个图标,就像所有Winforms应用程序都使用它一样?

I assume this is a shared resource somewhere in Windows. Rather than making a copy for each app, is there a way to use this icon just like all Winforms apps use it?

默认情况下如何为Winforms应用程序指定它?我没有在代码或项目设置中看到任何图标的引用。只是它使用默认图标。

How is this specified for Winforms apps by default? I don't see any reference of any icons in code or project settings. Just that it uses the "default icon".

推荐答案

它作为资源存储在System.Windows.Forms.dll中部件。你可以用Reflector获得一份副本。打开程序集,打开Resources节点,一直到wfc.ico。右键单击另存为。不知道你为什么要使用它,因为它是默认值。

It is stored as a resource in the System.Windows.Forms.dll assembly. You could get a copy with Reflector. Open the assembly, open the Resources node, all the way down to "wfc.ico". Right-click, Save As. Not sure why you'd want to use it, given that it is the default.

你可以使用Project + Properties,Application选项卡,Icon为你的应用程序设置一个自定义图标设置。每个表单都有自己的Icon属性。

You set a custom icon for your application with Project + Properties, Application tab, Icon setting. Each form has its own Icon property.

这篇关于在Windows中哪里可以找到默认的Winforms图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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