Select a node in a TreeView Programatically
CodeKeep C# Feed Gennaio 23rd, 2008
Description: Using C# and .NET Framework 2.0, programatically select a specific node in the TreeView control.Link: http://www.codekeep.net/snippets/d218246e-bb67-4367-927a-27781f2d6665.aspx
//The TreeView control is called treeView1 //We want to programatically select the first node like this: this.treeView1.SelectedNode = this.treeView1.Nodes[0];