O'Reilly logo

Application Development Using Visual Basic® and .NET by Dana L. Wyatt, Peter Thorsteinson, Robert J. Oberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required