Using different font in TreeView cuts text

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
 
G

Guest

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.
 

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