Retriving a file icon

Hello,
please excuse me if I do such posts, I've searched the web to find easy way to load an icon file in c# and to insert it into listview, but I've not found any answer, anyone can help me?
Thanks in advance
Paolo
[231 byte] By [PaoloPonzano] at [2007-12-16]
# 1
Where have you searched? MSDN is very good so please use that:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconusingimagelistcontrolwithlistviewcontrol.asp

Also read about the ListView in general:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformslistviewclasstopic.asp

Also read about the ImageList in general:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsimagelistclasstopic.asp

Also read about the ListViewItem in general:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformslistviewitemclasstopic.asp

When you run into specific problems please feel free to post back with the code you tried and where exactly you need help...
Cheers
Daniel

DanielMoth at 2007-9-9 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 2
Hello Daniel,
I haven't explained myself well, I just want to know what's the simplest way to extract an icon from a file, not how to insert them into listview or imagelist, that I've just found...... my problem is related to open a file, and take the icon associated, as explorer does.
Thanks
Paolo
PaoloPonzano at 2007-9-9 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 3
I am still not positive I know what you really want... see if this helps:
http://www.opennetcf.org/PermaLink.aspx?guid=342bde3d-eeba-4d78-9748-29eb89ee13bf

If it doesn't please describe your end user scenario in more detail...

Cheers
Daniel

DanielMoth at 2007-9-9 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...