How to add Icon to class library using VS2005 IDE

Hello All developer

Who can tell me how to add an Icon to Class library project using Visual Studio 2005 IDE. On the property page at the application Tab the combo box where we can select the associate icon is disable when the project type is library class.

Is there any way to enable it ,or we should programmatically code to add the Icon to the developed DLL.

Regards



Answer this question

How to add Icon to class library using VS2005 IDE

  • benny353

    Double click on "My Project" and then click on the resources tab....Use the first drop down at the top to select Icon and add the icon as a resource to your class library

  • Behrooz PB

    In addition, if you want the icon to be compiled into your assembly, as opposed to having to be shipped separately, make sure it is an embedded resource.

    After doing as Dman1 says, then find the icon in solution explorer, hit F4 and set the 'Compile' option to 'Embedded Resource'.



  • Deepak Asani

    Thank Guys for your recommendation , I did accordingly to you (both) but my compiled DLL still not take the Icon I assigned instead it take a system Icon (default which is a spur gear image), do I missing some things

    Regards


  • How to add Icon to class library using VS2005 IDE