Training
Module
Work with files and directories in a .NET app - Training
Learn how to use .NET, C#, and System.IO to work with directories, paths, files, and the file system.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The Windows Forms TreeView
control displays a hierarchy of nodes, like the way files and folders are displayed in the left pane of the Windows Explorer feature in Windows operating systems.
TreeView Control Overview
Explains what the control is and its key features and properties.
How to: Add and Remove Nodes with the Windows Forms TreeView Control
Gives instructions for adding and remove nodes from a tree view.
How to: Add Custom Information to a TreeView or ListView Control (Windows Forms)
Gives instructions for deriving an item in a list view or a node in a tree view to add any fields, methods, or constructors you need.
How to: Determine Which TreeView Node Was Clicked
Gives instructions for determining which node in a tree view was clicked, so the application can respond appropriately.
How to: Iterate Through All Nodes of a Windows Forms TreeView Control
Gives instructions for examining every node in a tree view.
How to: Set Icons for the Windows Forms TreeView Control
Gives instructions for displaying icons for the nodes of a tree view.
How to: Attach a ShortCut Menu to a TreeView Node
Demonstrates how to add a shortcut menu to a tree view node.
Also see How to: Add and Remove Nodes with the Windows Forms TreeView Control Using the Designer, and How to: Attach a Shortcut Menu to a TreeNode Using the Designer.
TreeView class
Describes this class and has links to all its members.
Controls to Use on Windows Forms
Provides a complete list of Windows Forms controls, with links to information on their use.
.NET Desktop feedback feedback
.NET Desktop feedback is an open source project. Select a link to provide feedback:
Training
Module
Work with files and directories in a .NET app - Training
Learn how to use .NET, C#, and System.IO to work with directories, paths, files, and the file system.