if (e.Button == MouseButtons.Right) { TreeNode node = this.tree.GetNodeAt(e.X, e.Y); if (node != null)//右键未选中节点,不改变当前选中的节点。 { this.tree.SelectedNode = node; } }