I suspected as much. Yuk! (trying to avoid native stuff).
But how do I get the correct files to retrieve the icon
from... I've tried looking in the registry to get the
default icon for extensions but I can't, for example, find
a path from the .doc key to the class id that has the
defaulticon key from where I can get the file to go look
in..
Thanks so far... any more would be great!
This is quite a common requirement... it should be
provided in the framework...
>-----Original Message-----
>Gwyn,
> You will need to the System.Runtime.InteropServices
namespace and P/Invoke some Win32 code, basically you will
be calling SHGetFileInfo and using a SHFILEINFO
structure. The following link provides an article for
exactly what you are looking for. Hope this help.
>
>http://www.codeguru.com/vb_misc/HowToUseVB.html
>
>-Nick Parker
>
>---
>Posted using Wimdows.net NntpNews Component - Posted
from .NET's Largest Community Website:
http://www.dotnetjunkies.com/newsgroups/
>.
>