471,616 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,616 software developers and data experts.

Image associated with a TreeView Node

Hi,

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
saying
\\\
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!

TIA
Nov 21 '05 #1
0 1313

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by gremlin321 | last post: by
5 posts views Thread by SeanT | last post: by
6 posts views Thread by L.M | last post: by
5 posts views Thread by Bob | last post: by
1 post views Thread by ShadowFil | last post: by
8 posts views Thread by Matt MacDonald | last post: by
1 post views Thread by hchintapalli | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.