Treeview strange behavior

S

solex

Hello,

I am in the process of converting a project from VB6 to DotNet and have
noticed that some strange behavior with the TreeView Control

(1) when setting the NodeFont property to Bold I cannot see the complete
text.
(2) when selecting a child node that has a different icon from its parent,
it takes on the parents' icon.

Has anyone else experienced these problems and is there a work around?

Thanks,
Dan
 
H

Herfried K. Wagner [MVP]

* "solex said:
I am in the process of converting a project from VB6 to DotNet and have
noticed that some strange behavior with the TreeView Control

(1) when setting the NodeFont property to Bold I cannot see the complete
text.
(2) when selecting a child node that has a different icon from its parent,
it takes on the parents' icon.

Has anyone else experienced these problems and is there a work around?

Do you use the new Windows Forms TreeView control or the old ActiveX
component (Microsoft Windows Common Controls)?
 
S

solex

I am using the .NET version.

I found the answer to both of my questions, (1) is a bug, I need to set the
treeview Font to bold and then set the individual nodes to regular in order
to see the bolded nodes (2) I was unaware of the SelectedImageIndex property
of the treeNode object and need to set it manually every time a node is
selected.

Thanks,

Dan
 
H

Herfried K. Wagner [MVP]

* "solex said:
I found the answer to both of my questions, (1) is a bug, I need to set the
treeview Font to bold and then set the individual nodes to regular in order
to see the bolded nodes (2) I was unaware of the SelectedImageIndex property
of the treeNode object and need to set it manually every time a node is
selected.

Thanks for sharing the answers with us.
 

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