Multiple Images on TreeNode of TreeView

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.
 
M

Morten Wennevik [C# MVP]

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.
 

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