Get shell icon from file extension

W

weixiang

Hi,

I am writing a program that have some filenames collected in a List View.
Then I need to display the correct icon for each of them according to the
extension of the file. In the document I found that I can use the
"Path.GetExtension()" to retrieve the extension of the file. But, how to
get the icon from the extension that display in windows explorer and show
that in List View?

Thanks in advance!!!

weixiang
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top