Click here to Skip to main content
15,915,319 members
Home / Discussions / C#
   

C#

 
GeneralRe: get key Pin
Guinness4Strength28-Dec-04 8:12
Guinness4Strength28-Dec-04 8:12 
GeneralCJK problem in the PDF format Pin
DTaV27-Dec-04 21:35
DTaV27-Dec-04 21:35 
General---Delegates Serialization & Remoting-- Pin
Identity Undisclosed27-Dec-04 21:07
Identity Undisclosed27-Dec-04 21:07 
GeneralRe: ---Delegates Serialization & Remoting-- Pin
leppie27-Dec-04 21:53
leppie27-Dec-04 21:53 
GeneralThe "ESC" character Pin
Hercules0127-Dec-04 19:25
Hercules0127-Dec-04 19:25 
GeneralRe: The "ESC" character Pin
Heath Stewart27-Dec-04 19:46
protectorHeath Stewart27-Dec-04 19:46 
GeneralRe: The "ESC" character Pin
Hercules0128-Dec-04 0:58
Hercules0128-Dec-04 0:58 
GeneralFonts and TreeViews Pin
Beringer27-Dec-04 18:56
Beringer27-Dec-04 18:56 
Hello,

I am using the generic TreeView Control from .Net 2002.

I want to have the root nodes of the control to have a bold font and I thought this could be easily done by setting the NodeFont attribute of the node.
However, when I do this the font is indeed bold but it seems that the control does not resize the text box the node text is drawn in and the text gets clipped (I assume becase the new bold font is wider than the previously assigned text which isn't bold by default).
Does anybody know what I can do to fix this.
Sample of code below:

TreeView treeView = new TreeView();
...
TreeNode tn = new TreeNode("Test");
tn.NodeFont = new Font(treeView.Font, FontStyle.Bold);
...

Thank you in advance,
Eric

GeneralRe: Fonts and TreeViews Pin
Identity Undisclosed27-Dec-04 19:53
Identity Undisclosed27-Dec-04 19:53 
GeneralRe: Fonts and TreeViews Pin
Beringer27-Dec-04 21:16
Beringer27-Dec-04 21:16 
GeneralRe: Fonts and TreeViews Pin
Identity Undisclosed27-Dec-04 22:44
Identity Undisclosed27-Dec-04 22:44 
GeneralRe: Fonts and TreeViews Pin
Beringer28-Dec-04 3:56
Beringer28-Dec-04 3:56 
Generalimagelist problem Pin
montu337727-Dec-04 17:50
montu337727-Dec-04 17:50 
GeneralRe: imagelist problem Pin
Heath Stewart27-Dec-04 20:47
protectorHeath Stewart27-Dec-04 20:47 
Generaldilema with strings and richtextbox Pin
Tyrus18227-Dec-04 16:46
Tyrus18227-Dec-04 16:46 
GeneralRe: dilema with strings and richtextbox Pin
Heath Stewart27-Dec-04 20:34
protectorHeath Stewart27-Dec-04 20:34 
GeneralRe: dilema with strings and richtextbox Pin
Tyrus18228-Dec-04 8:39
Tyrus18228-Dec-04 8:39 
GeneralRe: dilema with strings and richtextbox Pin
Heath Stewart28-Dec-04 9:59
protectorHeath Stewart28-Dec-04 9:59 
GeneralRe: dilema with strings and richtextbox Pin
Tyrus18228-Dec-04 12:09
Tyrus18228-Dec-04 12:09 
GeneralRe: dilema with strings and richtextbox Pin
Heath Stewart28-Dec-04 12:16
protectorHeath Stewart28-Dec-04 12:16 
GeneralRe: dilema with strings and richtextbox Pin
Tyrus18228-Dec-04 12:26
Tyrus18228-Dec-04 12:26 
GeneralRe: dilema with strings and richtextbox Pin
Heath Stewart28-Dec-04 12:34
protectorHeath Stewart28-Dec-04 12:34 
GeneralRe: dilema with strings and richtextbox Pin
Tyrus18228-Dec-04 12:50
Tyrus18228-Dec-04 12:50 
GeneralRe: dilema with strings and richtextbox Pin
Tyrus18228-Dec-04 13:00
Tyrus18228-Dec-04 13:00 
GeneralperformanceCounter woes Pin
sween327-Dec-04 16:38
sween327-Dec-04 16:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.