TreeNode with own icon

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
what i actually want is to store the information about the icon within the TreeNode object, not within an ImageList

regard
stefan
 
Back
Top