Using different font in TreeView cuts text

  • Thread starter Thread starter TEK
  • Start date Start date
T

TEK

Hello

I'm trying to modify some of the nodes in a treeview control to be drawed
using bold text.
However, the node text is beeing chopped at the end for the bold nodes.

Anyone that knows the solution to this?

Best regards, TEK
 
I've had the same problem before as well. I have not found a viable solution
other then adding extra spaces after the text:
Dim nNode As TreeNode = tv.Nodes.Add("Bold Text ")
the font for this node was already defined with the font style being set to
FontStyle.Bold.

I've also noticed with this that when you hover over the selected node and
are shown a Tool Tip you see the extra spaces after the last word.

If I'm able to find a good solution I will post here.
 
Back
Top