Multiple Images on TreeNode of TreeView

  • Thread starter Thread starter Frikkie.NET
  • Start date Start date
F

Frikkie.NET

I am using .NET 2.0 and I would like to display multiple images on a treenode
(about 3 or 4, it will vary from node to node). To achieve this I am
considering using OwnerDrawText and then render the additional images in the
first portion of the text area. Is there way that would make it possible to
change the bounds of the TreeNode? This is to ensure that the horizontal
scrollbar still functions correctly. I would also like the label edit to
appear in the correct position. Any suggestions? I suspect some pinvoke would
be required, but I don't have much knowledge in that area so any guidelines
would also be appreciated.
 
Hi,

To my knowledge there is no easy way to change the bounds, but you can
change the bounds indirectly by adding placeholder text to each node for each
icon that should be drawn.
 
Back
Top