By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,421 Members | 1,386 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,421 IT Pros & Developers. It's quick & easy.

Text clipped in tree node

P: n/a
I have set a node in a treeview to bold, and of course, the POS has clipped
it. Does anyone know how to expand the node width so all the text will be
displayed?

I am seriously disappointed in this thing. Trees used to be fairly easy.
This TreeView thing has been lobotomized.

Neil
Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I figured out a workaround.

Set the TreeView font to Bold in the properties. As each node is created it
will be created with enough space for the bold text. Then, set the font to
regular:

NewNode.NodeFont = new Font("Microsoft Sans Serif", (float) 8.25,
System.Drawing.FontStyle.Regular);
The Node will be displayed in regular weight, but enough space will be
allocated to properly display it when you set it to bold:

NewNode.NodeFont = new Font("Microsoft Sans Serif", (float) 8.25,
System.Drawing.FontStyle.Bold);
"Neil Makar" <ne********@amsec.com> wrote in message
news:e8****************@TK2MSFTNGP11.phx.gbl...
I have set a node in a treeview to bold, and of course, the POS has clipped it. Does anyone know how to expand the node width so all the text will be
displayed?

I am seriously disappointed in this thing. Trees used to be fairly easy.
This TreeView thing has been lobotomized.

Neil

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.