I cannot get my tree nodes to display in bold!

R

Robin Tucker

No matter what I try, I cannot get my tree nodes (in my TreeView) to display
in bold.

I have a "filter" system, whereby I should highlight items in the tree that
have passed the filter. To do this, I want to display them in bold font.
At present I am writing:

theNode.NodeFont = New Font(TreeView.Font, FontStyle.Bold)

However, this makes no change whatsoever to the display of the node, its
still regular.

I've also tried changing the font before adding it to the tree.

Any ideas?


Thanks



Robin
 
R

Robin Tucker

My mistake, I was "cloning" nodes from one tree to another - this seems to
reset their fonts.......
 

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