J
Jonathan Miller
I'm using vb.net and the treeview control. I have a created a context menu with a few items on it and set the context menu property of my treeview control to my context menu. Here is the problem: If I right-click on a node that is not currently the selectednode the following happens: The right-clicked node becomes highlighted. (correct) The context menu appears on top of the right-clicked node. (correct) The selectedNode property of the treeview is last selected node, not the right-clicked node! (not good!). So basically, how the heck to I figure our which node was right-clicked on to bring up the context menu? If the selectedNode property is not accurate, what do I use? Any help on this one would be appreciated!