C# TreeView 右键选中node

private void tvVmsList_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
  {
     if(e.Button   ==   MouseButtons.Right)    
     {    
        tvVmsList.SelectedNode   =   tvVmsList.GetNodeAt   (e.X   ,e.Y   );    
     }    
  }
posted @ 2007-04-11 00:19  随风而逝  阅读(1747)  评论(1编辑  收藏  举报