Perhaps someone has run across this before (I hope):

I'm using VB6 and its resource editor. My application uses a resource file to store multiple icons and other images for use with my application at runtime. When I compile my executable, the file's icon shown in Windows Explorer is not the icon I had chosen in my Project Properties. After much experimentation I have come to believe that this is related directly to the resource file and how VB6 compiles it into the executable.

I have discovered that I can create a shortcut to this file and look at the icons available from within the executable via 'Change Icon' from within the shortcut's property pages. The relationship between the order of my methods I use to create my resource file and order of these icons remains a mystery to me. What determines this order? It appears that the first icon in this list is the one Windows Explorer uses for the executable file, but I cannot determine how to control this order. At first I thought it might have an alphabetical arrangement, but I have disproven that theory. The only way I could force the correct icon to be displayed is to either remove the resource file entirely (not a viable option), or limit the resource file to contain only that desired icon which kind of defeats the purpose of the resource file, doesn't it?

Has anyone run across this strange, yet extremely annoying, problem/bug? And, better yet, has anyone found a fix or workaround for this? My current workaround is to include the actual file for my desired application icon with my installation and use it to override the executable icon. It works, but I would really like to correct it if I could.

Any help in this matter would be greatly appreciated!

Thanks.