Z
Zach
Sometimes I right click a node in a tree view and display a context
menu. When the user chooses an option from the context menu, I want
different things to happen depending on which node was selected. This
seems pretty common and straightforward, the problem arises when I have
node A selected, then I right click Node B. The information does not
seem to be maintained anywhere about the fact that it was actually Node
B that was clicked. If I use treeView.SelectedNode, then result is
Node A. Is my only option to maintain an additional field called
TempSelectedNode or something that is updated every time a node is
either right clicked or left clicked? Or is there a standard way to
handle this?
Thanks
menu. When the user chooses an option from the context menu, I want
different things to happen depending on which node was selected. This
seems pretty common and straightforward, the problem arises when I have
node A selected, then I right click Node B. The information does not
seem to be maintained anywhere about the fact that it was actually Node
B that was clicked. If I use treeView.SelectedNode, then result is
Node A. Is my only option to maintain an additional field called
TempSelectedNode or something that is updated every time a node is
either right clicked or left clicked? Or is there a standard way to
handle this?
Thanks