任何简单的方法来使用的图标,从资源? [英] Any easy way to use icons from resources?

查看:71
本文介绍了任何简单的方法来使用的图标,从资源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个C#应用程序。我需要一个图标添加到应用程序,所以我增加了一个图标资源。添加资源都很好,但有什么办法用我的(资源)图标,图标的形式无需增加额外的代码?当我尝试使用设计时图标形式的财产,似乎我必须选择一个文件,但我想用嵌入式图标...

I have an C# app. I need to add an icon to that app so i added an icon resource. Adding resource went fine, but is there any way to use my (resource) icon as form icon WITHOUT adding additional code? When i try to use design-time "icon" property of form it seems i have to choose a file, but i want to use embedded icon...

任何帮助?

推荐答案

选择该文件,将嵌入可执行文件的图标。

choosing that file, will embed the icon in the executable.

这篇关于任何简单的方法来使用的图标,从资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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