Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This example adds a first-level node and a second-level node to an existing TreeView control.
Example
TreeNode node = treeView1.Nodes.Add("Level one node");
node.Nodes.Add("Level two node");
Compiling the Code
This example requires:
- A TreeView control named treeView1.
See Also
Concepts
Designing a User Interface in Visual C#