从应用程序exe获取图标 [英] get icon from application exe

查看:63
本文介绍了从应用程序exe获取图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从我的应用程序exe文件中获取图标


dim myIcon as Icon = ... - > myApplication.exe,0


我该怎么做?

I want to get the icon from my application exe file

dim myIcon as Icon = ... -> "myApplication.exe,0"

how can I do that?

推荐答案

嗨Dominique,


我从来没有测试它必须这样做但我认为这是你在哪里寻找?b / b



Herfried肯定会确认他什么时候开始他的回合。


:-)

\\\ by Herfried K Wagner

foo.Icon = _

新图标(_

[Assembly] .GetExecutingAssembly()。GetManifestResourceStream(_

WindowsApplication1.Ball.ico_

)_



///


Cor

Hi Dominique,

I never tested it have to do that still but I thought this was where you
where looking for?

Herfried will surely confirm when he does his round.

:-)

\\\By Herfried K Wagner
foo.Icon = _
New Icon( _
[Assembly].GetExecutingAssembly().GetManifestResourceStream( _
"WindowsApplication1.Ball.ico" _
) _
)
///

Cor


Cor,

*" Cor" < no*@non.com> scripsit:
Cor,

* "Cor" <no*@non.com> scripsit:
我从未测试过它必须这样做但我认为这是你在哪里寻找的?

Herfried肯定会确认他什么时候做圆形。
I never tested it have to do that still but I thought this was where you
where looking for?

Herfried will surely confirm when he does his round.




我不确定这是否能解决问题,但它适用于

嵌入式图标资源。


;-)

-

Herfried K. Wagner [MVP]

< http://www.mvps.org/dotnet>



I am not sure if this will solve the problem, but it will work for
embedded icon ressources.

;-)

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


*" Dominique Vandensteen" < domi.vds_insert@tralala_tenforce.com> scripsit:
* "Dominique Vandensteen" <domi.vds_insert@tralala_tenforce.com> scripsit:
我想从我的应用程序exe文件中获取图标

dim myIcon as Icon = ... - > myApplication.exe,0

我该怎么做?
I want to get the icon from my application exe file

dim myIcon as Icon = ... -> "myApplication.exe,0"

how can I do that?




AFAIS p /调用''ExtractIconEx''如果图标嵌入为Win32

资源。


-

Herfried K. Wagner [MVP]

< http://www.mvps.org/dotnet>



AFAIS p/invoke on ''ExtractIconEx'' if the icon is embedded as Win32
resource.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


这篇关于从应用程序exe获取图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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