Icons in dll / assembly / class library

  • Thread starter Thread starter KS
  • Start date Start date
K

KS

I want to change the default icon which shows in Windows Explorer for my
dlls.

By setting this key in the registry the first icon in the assembly is shown
in Windows Explorer.
[HKEY_CLASSES_ROOT\dllfile\DefaultIcon]
@="%1"

I have sniffed the classlibrary dll/assembly for the icon and found a
default icon with identifier 32512 wich contains one 16x16 and one 32x32
icon.
I guess it gets inserted by the framework when I build the assembly.

Then I have tried to add more icons to the assembly. I have set them to
none/content/embedded,
I have added them i the resource file.

No success.

I can't see them in the dll nor does the icon in explorer changes from the
default one (32512).

Have anyone tied this and found a solution?

/k
 
I found a way.
By editing the vbproj-file and adding this line

<ApplicationIcon>A10.ico</ApplicationIcon>

the icon shows up in windows explorer.

Thus my next question: Why is the icon combo greyed out in the
project/Properties/Application tab?

/k
 
Back
Top