TEL : +33 (0)9 72 13 15 17
Accueil
Services
Logiciels
Competences
Contact
La boutique
Forums
Windows Forms FAQ resources
24. Windows Forms TreeView
24.10 How do I programmatically select a node in a TreeView control?
You need to set the HideSelection property of the TreeView to false and call:
[C#]
//Select the first node
this.treeView1.SelectedNode = this.treeView1.Nodes[0];
[VB.NET]
'Select the first node
Me.treeView1.SelectedNode = Me.treeView1.Nodes(0)
online visitor count