stuck: cant move to another TreeNode by rightclicking
I want to be able to change the selected node of a treeView by rightclicking on it, but seems like I cant do it.
the very odd thing is that when you right click on a node, it is highlighted as long as you dont release the mouse button. If you release the mouse button, the focus goes back to the last node.
I'm probably doing something really wrong, but whatever I'm doing, I cant figure it out. I even started a new project just to test and see if this would happen to another project, but same problem.
some help is appreciated
(If you're wondering why I want to do this: when the user right-clicks on an item, I want that item to be selected and then I want a popup menu to be shown. But TreeView.SelectedNode doesnt point to the right node at the time of the right click, nor after it :( )