treeviw problem

  • Thread starter Thread starter Ohad Young
  • Start date Start date
O

Ohad Young

Hi,

I'm using Windows.Forms.TreeView control (.NET Framework 1.1). When a user
select a a node from the tree, the text of the selected TreeNode object is
displayed in a Bold font. The problem is that when the text is displayed in
Bold font some of it dissapears. It seems as if the space allocated for the
text of the TreeNode is not wide enough. I added a splitter to change the
width of the TreeView control but it didn't help, the space allocated for
the text remains the same and still not wide enough . Any idea of how solve
it will be appreciated.

Thanks, Ohad
 
Hello,
do it other way around. Make the TreeView's Font bold and later change
the font for those nodes which you need to display as normal text.

HTH. Cheers.
Maqsood Ahmed [MCP C#,SQL Server]
Kolachi Advanced Technologies
http://www.kolachi.net
 
Hi,

Thanks for the tip. I’m not sure I’ll do it since it might be a very big
tree. I find another way around it by setting the HideSelection property
to false.

Thanks anyway, Ohad
 
Back
Top