-
Oct 9th, 2006, 10:54 AM
#1
-
Oct 13th, 2006, 01:33 PM
#2
Re: Classic VB - How can I set my exe icon using a resource file?
My only problem with this method (and I think it should be pointed out) is that VB6's resource editor accepts icons with color depth upto 256 colors. So if you have icons with True colors (not to mention XP and Alphas) then this method is going to fail [unfortunately] - Resource Editor will throw an error "Invalid Icon File".
On the other hand you may assign True and even XP colors icons to form directly - Whether or not proper colors are shown could be another topic but at least VB form does accept those colors depths.
Last edited by si_the_geek; Oct 24th, 2006 at 10:17 AM.
Reason: merged replies
-
Nov 8th, 2006, 05:06 PM
#3
New Member
Re: Classic VB - How can I set my exe icon using a resource file?
When I first started programming in VB (albeit a few months ago) I couldn't figure out how to change the icons, so I used Resource Hacker to change the icon in the .exe. This process works fairly well as you don't have to face the colours restrictions that you do in VB 6.
Last edited by si_the_geek; Nov 9th, 2006 at 04:04 PM.
-
Jan 16th, 2008, 10:08 PM
#4
Lively Member
Re: Classic VB - How can I set my exe icon using a resource file?
i have a answer for this problem!
If you want to use more color depths Icons, you should not use VB resource editor to add those Icons, you can use 2 file RC.exe, RCDLL.dll to combile your own resource file, and then add this file to VB Project.
You can use those icon in the same way as VB resource editor's icon.
!Have fun!
-
Feb 21st, 2020, 08:06 PM
#5
Re: Classic VB - How can I set my exe icon using a resource file?
Is there any way to modify or add any resource files, such as using the windows API?list all sources,add,edit,update ?
-
Feb 21st, 2020, 11:37 PM
#6
Re: Classic VB - How can I set my exe icon using a resource file?
vb6 support 48*48,256*256(24bit ),In the desktop large icon display, visible around 200 pixels, in addition to the edge is not too smooth, but also perfect support for large icons and transparency.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|