G
Guest
I have a TreeView control and I populate nodes and set their text property.
If I make the font of the tree node bold, the part of the last letter is
chopped off when displayed. It seems like the length of the tree node label
is tied to the normal look of the font, and since the bold view makes the
text take mode place, the text is chopped off.
Any ideas?
..
..
TreeNode nodePrfTitle = new TreeNode("Preferred Name");
nodePrfTitle.ImageIndex = 2;
nodePrfTitle.SelectedImageIndex = 2;
nodePrfTitle.NodeFont = new System.Drawing.Font("Microsoft Sans Serif",
8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,
((System.Byte)(0)));
..
..
If I make the font of the tree node bold, the part of the last letter is
chopped off when displayed. It seems like the length of the tree node label
is tied to the normal look of the font, and since the bold view makes the
text take mode place, the text is chopped off.
Any ideas?
..
..
TreeNode nodePrfTitle = new TreeNode("Preferred Name");
nodePrfTitle.ImageIndex = 2;
nodePrfTitle.SelectedImageIndex = 2;
nodePrfTitle.NodeFont = new System.Drawing.Font("Microsoft Sans Serif",
8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,
((System.Byte)(0)));
..
..