title: How to find if selected node is first node of treeview
body: <p>I am using a treeview in which I have many parent nodes and child nodes.. in the treeview keydown event I am using the following code to select next node when giving keydown and keyup </p>
  
  <pre><code>    Private Sub Treeview1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Treeview1.KeyDown
          If e.KeyCode = Keys.Up Then
              Treeview1.Select()
          ElseIf e.KeyCode = Keys.Down Then
              Treeview1.Select()
          End If
      End Sub
  </code></pre>
  
  <p>(<code>Treeview1.Select()</code>) Now when the selection reaches the very first node, I want to focus previous control of treeview, but I can't check the selected node is first node of treeview. Can anyone help me to find.</p>