G
Guest
by default when you right click a tree the control selects the node
if you add a right-click event (so that I can put sepearate ContextMenus
depending on what type of node the user clicked on) then that default
behavior is overrided, and it no longer selects the node the user
right-clicked on. Now my event is wrong because I want to use SelectedNode
but the SelectedNode turns out to be whatever was previously selected instead
of what the user just clicked on.
how do I solve this problem?
if you add a right-click event (so that I can put sepearate ContextMenus
depending on what type of node the user clicked on) then that default
behavior is overrided, and it no longer selects the node the user
right-clicked on. Now my event is wrong because I want to use SelectedNode
but the SelectedNode turns out to be whatever was previously selected instead
of what the user just clicked on.
how do I solve this problem?