Home All Groups Group Topic Archive Search About

Images (icons) from System

Author
6 Nov 2006 8:38 PM
Elmo Watson
I'm using a Treeview, which will list files in a directory.
Naturally, I could buy them, or search the internet for them, and then
create some sort of algorithm to apply them to each treeview node, but I
thought I'd ask.....

Is there a way to look at the system (reflection, perhaps) and apply the
correct Icon/Image for that particular filetype, as the image in the node?
And - if so, can you point me to the resource that shows how this is done?

Author
6 Nov 2006 8:50 PM
scorpion53061
http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=1861&lngWId=10



Elmo Watson wrote:
Show quoteHide quote
> I'm using a Treeview, which will list files in a directory.
> Naturally, I could buy them, or search the internet for them, and then
> create some sort of algorithm to apply them to each treeview node, but I
> thought I'd ask.....
>
> Is there a way to look at the system (reflection, perhaps) and apply the
> correct Icon/Image for that particular filetype, as the image in the node?
> And - if so, can you point me to the resource that shows how this is done?