title: Tree View and double select
body: <p>Hi. I have a <code>TreeView</code> were it expands when I double click on it. And I have method which shows only one node (which is selected, other open nodes close automatically)</p>
  
  <pre><code>void treeView1_BeforeSelect(object sender, TreeViewCancelEventArgs e)
      {
          foreach (TreeNode node in e.Node.Parent.Nodes)
          {
              if (node != e.Node)
                  treeView1.CollapseAll();
  
          }
      }
  </code></pre>
  
  <p>Problem is that this method works when I single-click the mouse, but the tree collapses when I double-click it. I need that <code>treeView1_BeforeSelect</code> will execute on double-click.</p>
  
  <p>Thnx</p>