Listing 2. The CreateFileNode method creates a TreeNode object of type "file" and sets its appropriate properties, including where it should navigate to when a user clicks on it. Return the node to the calling code block so you can add it to a treeview.