private void treeView1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e){ TreeNode n = treeView1.GetNodeAt(e.X, e.Y); if (n == null) treeView1.SelectedNode = null;}
private void treeView1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e) { if (this.treeView1.GetNodeAt(e.X,e.Y) == null) { this.treeView1.SelectedNode = null; } }