通过MyProject.vbproj将ico添加到项目中 [英] Adding ico to project via MyProject.vbproj

查看:93
本文介绍了通过MyProject.vbproj将ico添加到项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我需要将我的exe文件图标添加到MyProject.vbproj



注意:我不喜欢我需要从属性窗口添加我的exe图标。



任何人都可以帮助我并告诉我将XML添加到exe文件的XML代码?



谢谢。

Hi guys!
I need to add my icon of my exe file, into MyProject.vbproj

Attention: I don't need to add my exe icon from properties window.

Anybody can help me and let me know the code of XML to add icon to exe file?

Thanks.

推荐答案

如果你正在使用安装项目,你可以从安装属性选项中添加图标,也可以点击一旦这个选项可用。您可以在点击一次设置的发布/资源菜单中找到它。







http://stackoverflow.com/questions/9014337/setting-correct- icon-for-shortcut-in-vs2010-setup-project [ ^ ]





此链接可能对此有用你来。
if you are using a setup project you can add icon from setup property options and also in click once this option available. you can find it from the publish / resource menu on the click once setup.



http://stackoverflow.com/questions/9014337/setting-correct-icon-for-shortcut-in-vs2010-setup-project[^]


this link may helpful to you.


从windows窗体获取图标的统一方式,如果确实是你的目标是:

The uniform way from a windows form to get an icon, if that is indeed what you're aiming at is:
this.Icon = ((System.Drawing.Icon)(resources.GetObject("


this.Icon)));
this.Icon")));



现在您不必从原因资源文件中获取该图标对象。



不确定这是你问的问题,你的项目中有什么类型的应用程序?



vb.net中的符号类似于Me.Icon =施放(resource.getobject(...)作为图标)如果我没记错,你可以找到更多能够在线翻译的语言;)


Now you do not have to get that icon object from a resource file of cause.

Not sure if this is what you ask, what type of application is it in your project?

the notation in vb.net is something like Me.Icon = cast(resource.getobject(...) as Icon) if i remember correctly but you can find a ton of language online translations more able ;)


这篇关于通过MyProject.vbproj将ico添加到项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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