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
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
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************@swissonline.ch> wrote in message
news:O0**************@tk2msftngp13.phx.gbl...
With PInvoke to SHGetFileInfo, try:

http://www.syncfusion.com/faq/winforms/search/660.asp

http://microsoft.com/downloads/detai...9-d7a0d0ada52d

--
Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_dotnet.html - http://dnetmaster.net/

Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.