title: How to select a node of treeview programmatically in c#?
body: <p>Used <code>treeview.SelectedNode</code> to select a child node. How to invoke <code>treeview.AfterSelect</code> event when a node is selected programmatically?</p>
  
  <pre><code>this.treeView1.SelectedNode = this.treeView1.Nodes[0].Nodes[0].Nodes[0].Nodes[0]; 
  if (this.treeView1.Nodes[0].Nodes[0].Nodes[0].Nodes[0].IsSelected) 
  {
   MessageBox.Show("Node is selected"); 
  }
  </code></pre>