View Full Version : Visual Basic Large and Small Icons [RESOLVED]
Morgoth
03-29-2005, 03:56 AM
I have an application in Visual basic, and when I give it a unique icon with a large 32x32 icon and a small 16x16 icon (in the same file) it doesn't work right.
http://sxh.sonnexh.com/~morgoth/images/icon1.png
This icon should be the small one, yet it isn't.
http://sxh.sonnexh.com/~morgoth/images/icon2.png
Is there away to fix this? Do you understand my problem?
Lucktas
03-29-2005, 03:45 PM
What version of vb are you using ? vb6 ? i program in vb.net, and i have had similar problems to the one you have described. Did you make this icon ? most icons have more than two sizes, they have many for each different possible size, for example: 16x16, 32x32(standard), 64x64 etc. if you made that icon you may need create another one with the smaller image as both the 32x32 and the 16x16, and use that for the title bar.
Morgoth
03-29-2005, 11:44 PM
Visual Basic 6.0
I think it's a problem with the program itself; Visual Basic, not the one I started, because I can recreate this problem by just creating a new form.
I have 3 icons I made separately, and when I was trying to solve my problem I looked up 2 programs that seemed like they would put me on the right track.
The 3 icons I made were sized:
16x16 small
32x32 normal
48x48 large
http://www.vb-helper.com/howto_show_file_icons.html <- This program showed me that I can combine 2 icons in 1.
http://www.vb-helper.com/howto_create_icon.html <- This program actually made me my icon.
With the "create_icon" program I combined the two, small and normal, icons to make 1 icon. I then put this icon into the icon field of my program made with Visual Basic, and it doesn't work.
This is an example:
http://sxh.sonnexh.com/~morgoth/images/icon2.png
The icon in the top left corner is 16x16 in size, and should be the small icon, but it's just the 32x32 icon scaled down.
You can see, again, that the icon contains both a 16x16 icon and a 32x32 icon:
http://sxh.sonnexh.com/~morgoth/images/icon1.png
The attachment in my first post is the icon file zipped up. Test it on your version of Visual Basic does it work with you? Or is it a Visual Basic problem?
Thanks for the help.
Morgoth
03-30-2005, 09:50 AM
I fixed this problem from a seperate, helpful Visual Basic Forum.
I hope it's alright that I post this link,
http://www.vbforums.com/showthread.php?p=1963582
It's helpful!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.