what i actually want is to store the information about the icon within the TreeNode object, not within an ImageList
regard
stefan
What you're going to want to do is persist the treeview object in some
manner. The most common is serializing the treeview to XML but there are
members of the treeview class that are not serializable, so you'll need to
create a proxy class that captures/reflects the tree structure before it's
disposed. You can accomplish this in by either extending the treeview class
to add this funtionality or to keep things relatively generic, you can
write a supporting class/module to handle this. Now, as far as storing the
icon: Since you're serializing in one form or another, you'll want to
capture the SelectedIndex, SelectedImage properties (and an other ones you
want) these are Integers, which you can use to identify against an image
list in your applicatiom, the icon that's associated with the node. OR you
can extend the treeview control and handle the events that way.