One minute
Retrieving File Icons for specific file types
I just uploaded a new sample to microsoft.com, pulling some useful code out of another MSDN sample that was so unrelated that I figured that this little bit of interesting code would never be found. This code sample shows how to retrieve the icon for any given file type and it does it through a pretty cool component that exposes 2 ImageLists to make it easy to use with a ListView or TreeView.
That link might not be live for a little bit while it replicates out to the download servers, but the code is available at;
http://download.microsoft.com/download/a/c/5/ac51af30-44c3-43cd-8ffb-0714188a590b/FileIconsSetup.msi
Thoughts on this post? Feel free to reach out on Bluesky!