The reason it's slow is that it requires building an icon on the fly from
your hicon data. An alternative would be to look at how you output the icons
from which you have a hicon. For example you could use P/Invoke to call
DrawIcon to draw the icon on a form. The story does get better in .NETCF
v2.0 as the Icon class includes the FromHandle method.
Peter

Signature
Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://www.peterfoot.net |
http://www.opennetcf.org
> Hi,
> I need to retrieve icons of files in my .net application. Because the
[quoted text clipped - 5 lines]
> I find this rather slow method when it is necessary to treat a big
> number of files. Is not there a faster method in .NET? Thank you