It looks like (looks like! ... not that there is!) there's a bug in the
TreeNode object. When you change the font, it does not readjust its size
appropriately.
The following code shows the boldface text truncated with everything after
"W" removed.
private void Form1_Load(object sender, System.EventArgs e) {
TreeNode newNode = new TreeNode("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
treeView1.Nodes.Add(newNode);
newNode = new TreeNode("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
newNode.NodeFont = new Font(this.Font, FontStyle.Bold);
treeView2.Nodes.Add(newNode);
}
What I want to know is, how do I work around this? I need some of the nodes
to be in bold!
Thanks,
Jon