1//The TreeView control is called treeView1 2//We want to programatically select the first node like this: 3this.treeView1.SelectedNode = this.treeView1.Nodes[0];