imagelist and treeview

  • Thread starter Thread starter Sam
  • Start date Start date
S

Sam

Hi,

I guess I didn't understand properly how ImageIndex works for treeview
Hereis my code:

For iCntr As Integer = 0 To rNodeList.Count - 1
If Not (rNodeListNew.Contains(rNodeList.Item(iCntr))) Then
tvRelations.Nodes(iCntr).ImageIndex = 0
End If
Next

I've got an imagelist that contains 4 images (I didn't code it, I've
used the properties manager) and I've assigned my imagelist to my
treeview(still using the manager)

Of course my program gets in the If End If statement ;)
So why no images at all get displayed ? :(

Thx
 

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

Similar Threads


Back
Top