By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,330 Members | 1,313 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,330 IT Pros & Developers. It's quick & easy.

Get shell icon from file extension

P: n/a

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!!!

Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
That's what I want. Thank you very much!

"Thomas Scheidegger [MVP]" <sp************> wrote in message
With PInvoke to SHGetFileInfo, try:

Thomas Scheidegger - MVP .NET - 'NETMaster' -

Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.