4
votes

Ok so the title is, once again, straight forward.
I need to extract the 16x16 icon of a file extension, and it works.
But the other (large) size is 32x32 or 48x48 (Can't remember at the moment).
But for my interface I need the 64x64 icon of the file type.

How do I extract it?
P.S. The faster, the better, 'cuz I am gonna need to extract lots of icons.

3
My personal favourite is LoadIconWithScaleDown()David Heffernan

3 Answers

2
votes

You could try using a MultiIcon object to iterate through the icons. http://www.codeproject.com/KB/vb/MultiIcon.aspx

1
votes

You can try to use this logic from CodeProject

0
votes

I found this on another site:

Icon icon1 = IconFactory(@"C:\hoge.ico", 64, 64);

Also, check out http://msdn.microsoft.com/en-us/library/ms648075.aspx