Home > Software engineering >  The TreeView control does not display
The TreeView control does not display

Time:10-02

As title, I want to ask, why the program is running normally, the control is not show, don't even appear the root node, why? Everybody to help

CodePudding user response:

Seems to have a content, is can't see, everybody to help

CodePudding user response:

What's not, in the code,
Here is one of the most simple,
 Private Sub Form_Load () 
With TreeView1
. Nodes. The Add, "root", "root"
TvwChild. Nodes. The Add "root", "node1", "node1
"TvwChild. Nodes. The Add "root", "2", "2"
Nodes (" root "). Expanded=True
End With
End Sub


CodePudding user response:

Is can only see the background, but click on the node is a content, but does not display, is an attribute of the treeview control accidentally changed by me?

CodePudding user response:

reference cumtmengmeng reply: 3/f
is only see the background, but click on the node is a content, but does not display, is an attribute of the treeview control accidentally changed by me?

Does your background color and font color?

How to check yourself...

CodePudding user response:

How could not understand, don't show,

The post code

CodePudding user response:

Delete control add again, try to add only one root node
  • Related