如何通过代码更改exe图标build fom vb6 [英] how to change the exe icon build fom vb6 by code

查看:95
本文介绍了如何通过代码更改exe图标build fom vb6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改从vb6编译的任何应用程序的图标,就像Resource Hacker一样。但我只想通过代码更改它,只需更改图标,别的更多!

.net或者Vb6或者vc还可以,有人能帮助我吗?非常感谢!

解决方案

正如@enhzflep建议的那样,您需要访问exe的资源。此CodeProject文章可能会有所帮助

文件资源管理库(.NET ) [ ^

I want to change the icon of any application which compiled from vb6,just like Resource Hacker.But I only want to change it by code and just change the icon,nothing else more!
.net Or Vb6 or vc is OK,could anybody help me ? thanks a lot!

解决方案

As @enhzflep has suggested, you need to access the exe's Resources. This CodeProject article may help
File Resource Management Library (.NET)[^]


这篇关于如何通过代码更改exe图标build fom vb6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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