Another Treeview question

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?
 
J

Jeff Gaines

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top