i have a treeview, which is merely a file/folder structure. when i add a file, i want to associate it with its icon.

so, when i find a file, i add the treenode and then i get the icon associated with the file. if i use an imagelist then i need to see if that icon is already part of the imagelist and find its index... thats tedious.
if you have a thought how i might more effectively use an imagelist tell me, because right now it dosn't make much sense to me for what i'm trying to do.