By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,694 Members | 1,320 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,694 IT Pros & Developers. It's quick & easy.

Image associated with a TreeView Node

P: n/a

I am a little confused about associating an image w/ the VB.NET TreeView
Control. My specific requirement is that I want to associate an image w/ some
specific nodes in the TreeView only.

I coded a test project with a form with a TreeView and an ImageList control.

Me.TreeView = Me.ImageList

'The above statement associates the image at the 0th index of the ImageList
w/ all the nodes of the treeview.

The only way I was able to turn off an image for a particular node is by
Node.ImageIndex = <Some invalid index of the imagelist>

If the treeview has a lot of nodes, this would be a painful thing to do.

Have I misunderstood something?? How can I associate an Image w/ say just
1node in the treeview?

Looking forward to your responses!

Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.