I've got a Treeview, in which I'm adding file names/paths
How can I add the System image associated with that file (dynamically), in
the Treeview?

Re: Associated icon for files in Treeview by Herfried

Herfried
Fri May 02 12:32:20 CDT 2008

"Seth Williams" <sm@here.com> schrieb:
> I've got a Treeview, in which I'm adding file names/paths
> How can I add the System image associated with that file (dynamically), in
> the Treeview?

'Icon.ExtractAssociatedIcon'. You may also take a look at the documentation
on the Win32 listview control (the control the .NET listview control is
based on) for system image list support.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>