When inserting a node in TreeView with long text – horizontal scrollbar appears. Is there a way to word wrap the text in TreeNode, instead of scrolling?
Currently I use solution that splits the text according to TreeView’s width and display its chunks in different nodes, but the “alignment” doesn’t holds after resizing and just looks weird.
Setting the Scrollable property of your TreeView to false will eliminate the scrollbars, but it will also cut off your text — probably not what you want.
This MSDN Forum thread give an answer that seems workable, but I don’t know that you’re interested in using the OwnerDrawText function to draw the nodes yourself.
Personally, I’d try to rethink the whole thing, if possible — shorter node text, bigger tree area, etc.