treeView make nodes have no images

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!
 
R

Rhett Gong

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.
 

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