treeView make nodes have no images

  • Thread starter Thread starter mBird
  • Start date Start date
M

mBird

I have images on my treeview and I select them using .imageindex

I want images on my parent nodes but not the final child nodes (so like if
you had folders to open/close but for the fiels you had just the filename)

I can set the imageindex to some unused number (like -2) so makes a blank
image but that still leaves a space.

How can I tell a node not to use images?

Thank you!
 
Hi,
If you attach an imagelist to a Tree control, you can use it or remove it
completely. As you said before, if you gave an invalid value, there was a
space before the text. I think this is a limitation.
Maybe you can create a new TreeControl without imagelist attached, and
treat the tree which has imagelist as father node. But it is just a
suggestion. And it is too complex to control.


Best regards,

Rhett Gong [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
 
Back
Top