private void tv_singal_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right)//判断你点的是不是右键 { Point ClickPoint = new Point(e.X, e.Y); TreeNode CurrentNode = tv_singal.GetNodeAt(ClickPoint); if (CurrentNode != null)//判断你点的是不是一个节点 { tv_singal.SelectedNode = CurrentNode;//选中这个节点 } } }