Finding Default App Icons With Visual Basic
(Page 1 of 5 )
Using the Windows API it's easy to find the default icon for any file extension. Phil shows us exactly how it's done in this comprehensive article.We are all familiar with the "explorer" style look and with the idea that it gives different icons to different file types. This is useful, because it lets us see at a glance what type of file we are looking at and it makes for a generally more user friendly environment.
But this also means that if we want to displays icons in our apps that represent files (like you would on a file sharing program or an FTP client) that we will need to get those same icons and display them in (for example) a picture box. In this article I hope to show you how to do this. I'll give you the complete code at the end to save you having to piece lots of bits of code together.
You should be proficient with Visual Basic to get the most out of this article. You should also be familiar with the Windows registry.
Next: How It's All Done >>
More Visual Basic Articles
More By Phil Couling