Application Development Using Visual Basic® and .NET
by Robert J. Oberg, Peter Thorsteinson, Dana L. Wyatt
TreeView Control
The TreeView control displays a list of information in a hierarchical manner. Rather than use an Items collection like all other list-based controls, the TreeView uses a Nodes collection to manage the data in the tree. Each item in the tree is a TreeNode. Each TreeNode can, in turn, consist of a collection of other TreeNodes.
The TreeView class has properties such as ShowLines, ShowLinesAt-Root, and ShowPlusMinus that control its appearance. The control may also be associated with an image list in order to display icons. Other interesting properties and methods include:
SelectedNode indicates which node is currently selected.
Sorted indicates whether the nodes are sorted.
FullRowSelect indicates whether the selection highlighted ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access