Right click select on .Net TreeNode

前端 未结 3 2369
情歌与酒
情歌与酒 2020-12-30 22:28

I am trying to show a popup menu on my treeview when users right click - allowing them to choose context sensitive actions to apply against the selected node.

At the

3条回答
  •  太阳男子
    2020-12-30 23:01

    yes. Here is processing for NodeMouseClick event:

    private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
    {
          treeView1.SelectedNode = e.Node;
    }
    

提交回复
热议问题