1
Answer

TreeViewControl

crausch

crausch

17y
2k
1
I have a treeview control that I am adding a tree node collection to. (Basically I am displaying a drive and folder list in my application similar to Windows Explorer). Once I have created my node collection, I add it to the treeview control and I do a "myTreeView.Nodes[0].ExpandAll();" to expand the first node in the tree.

My problem is that none of the child nodes displays a plus or minus symbol until after the user clicks on a specific node, then it appears. How can I get the symbols to display when the first node is expanded?

I have tried the "myTreeView.ShowPlusMinus = true;" but that did not work. I also tried collapsing and expanding through the code but that did not work. I would like to have all nodes always show their plusMinus symbol.
Answers (1)