如何使鼠标右键选择节点?我用鼠标右键点击了它,如下所示:
private void myTreeView_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
if (e.Button == System.Windows.Forms.MouseButtons.Right)
{
this.myTreeView.SelectedNode = e.Node;
}
}
我希望节点不是通过单击来选择的,而只是按下按钮。