Another Treeview question

  • Thread starter Thread starter Elmo Watson
  • Start date Start date
E

Elmo Watson

I want to be able to define which images are used, when adding nodes
dynamically

However, whenever I add an imagelist with images as the imagelist for a
Treeview, it automatically picks an ImageIndex, and it affects the images in
every node.

I don't really understand this concept, since I started a while back, with
VB6

Can anyone help me to understand this and get around this part?
 
I want to be able to define which images are used, when adding nodes
dynamically

However, whenever I add an imagelist with images as the imagelist for a
Treeview, it automatically picks an ImageIndex, and it affects the images
in every node.

My understanding is if you specify an image list it will automatically be
used for all nodes (defaulting to ImageIndex 0). So if you specify an
image list you must specify an ImageIndex for each node when you
create/add it.
 
Back
Top