tags:

views:

283

answers:

2

I have quite a large VB6 project, with many forms, classes, modules and user controls.

When I create a shortcut to the compiled executable and choose "change icon" for the shortcut there are multiple icons that I can select from. This indicates that there are multiple icon resources being compiled into the executable. The first icon is the "normal" application icon which seems to be controlled by setting the icon form in the MAKE tab of the project settings. That is fine and works as expected.

The problem I have is that I just cannot find out where the other icons that are being compiled into the executable are coming from. Is there a way I can take a VB6 project or a Complied executable and find out where in the project the icons resources are being set?

I've checked all the forms and a bunch of the image lists and none seem to be the icons in question.

Any ideas?

+4  A: 

This link talks about using the VB6 add-in manager to use an add-in called the VB6 Resource Editor. Sounds like a good place to check for more resources.

Zerofiz
That was exactly what I needed!!!
Michael Prewecki
Awesome, glad it worked!
Zerofiz
A: 

The problem I have is that I just cannot find out where the other icons that are being compiled into the executable are coming from.

I believe this is a misapprehension.

The default set of alternate icons for a shortcut are held within Shell32.dll.

Bob Riemersma
No in my case they were indeed in a compiled resource file, I was just unaware of the resource file in the VB6 project. As soon as I opened the resource editor it pointed out that the project contained a compiled resource file and it was the source of my icons. That's the trouble with inheriting legacy applications.
Michael Prewecki