TreeNode with own icon

G

Guest

Hi NG

i need a TreeView consisting of TreeNodes where each TreeNode has its own icon (some nodes can have the same icon). This one icon should be shown regardless if the node is active or not. How can i implement that? I am using C#

Thanks for any help
Stefan
 
G

Guest

Hi Stefan

I am not exacly sure what you are trying to achieve, but you can make sure a TreeNode is visible by calling its EnsureVisible method. This will work regardless of its location in the tree, scrolling, icon etc

Does that help

RS
 
G

Guest

what i actually want is to store the information about the icon within the TreeNode object, not within an ImageList

regard
stefan
 

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