How do I get the associated Icon from a file in the file system

Platform: WinForms| Category: Win32

Here is a sample prepared by Matthias Heubi that uses interop to access SHGetFileInfo to retrieve icons.

You could also use the ExtractIconEx native api via PInvoke to extract the app icon.

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.