首页  编辑  

TreeView使用鼠标右键选中节点

Tags: /C#/界面处理/ListView_TreeView/   Date Created:

private void treeView1_NodeMouseClick( object sender, TreeNodeMouseClickEventArgs e)

{

        if (e . Button == MouseButtons . Right)

               (( TreeView )sender) . SelectedNode = e . Node;

}