treeviw problem

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
 
M

Maqsood Ahmed

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
 
O

Ohad Young

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
 

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