I failed to set Icon for my component lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- motaz · 2009-08-29 11:38 I created a 24*24 pixel BMP and XPM files. I convert them by lazres to .lrs file I put this code in initialization section of my component unit: Code: [Select]initialization {$I tspidercgi.lrs}  I tried also: Code: [Select]initialization {$I spidercgi.lrs}  unit name: spidercgi.pas component name: TSpiderCGI I recompiled the package, and rebuild lazarus many times but I still get the default icon Please help ---------------------------------------------------------------------- Leledumbo · 2009-08-31 05:53 Have you followed the steps here? ---------------------------------------------------------------------- motaz · 2009-09-01 08:51 it is solved now. I've added the T for component type in resource file. I forget to change automatic name (spidercgi) to (tspidercgi) to component name. This was not in the steps: LazarusResources.Add('tspidercgi','BMP',[ default was: LazarusResources.Add('spidercgi','BMP',[