How can I find out which node in a tree list the context menu has been activated? For instance right-clicking a node and selecting an option from the menu.
I can\'t
Another option you could run with is to have a global variable that has the selected node. You would just need to use the TreeNodeMouseClickEventArgs
.
public void treeNode_Click(object sender, TreeNodeMouseClickEventArgs e)
{
_globalVariable = e.Node;
}
Now you have access to that node and it's properties.