| Using the TreeView control |
|
|
|
|
Tree view and list view are commons way of displaying information in a Windows application. This sample puts a node in a tree view.
We declare a TreeView object and assign its Parent property to the main form of the application. We, then, set the Dock property to the value Fill of the DockStyle enumeration so that the TreeView object fills the whole client area of the application. Then we declare a TreeNode object and add it to the Nodes collection maintained by the the TreeView object. |
| < Prev |
|---|














