Right-clicking on a node in a treeview does not change the SelectedNode property, therefore it is impossible to get a handle on the current node within, for example, a context menu when using this method.

Instead, use a mouse event in conjunction with the treeview's "GetNodeAt" method to get a handle on the node: