This post originated from an RSS feed registered with .NET Buzz
by Duncan Mackenzie.
Original Post: Retrieving File Icons for specific file types
Feed Title: Code/Tea/Etc...
Feed URL: /msdnerror.htm?aspxerrorpath=/duncanma/rss.aspx
Feed Description: Duncan is the Visual Basic Content Strategist at MSDN, the editor of the Visual Basic Developer Center (http://msdn.microsoft.com/vbasic), and the author of the "Coding 4 Fun" column on MSDN (http://msdn.microsoft.com/vbasic/using/columns/code4fun/default.aspx). While typically Visual Basic focused, his blogs sometimes wanders off of the technical path and into various musing of his troubled mind.
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.