Hi All,
I have been trying to implement right click functionality in the winforms treeview. What i noticed is the right click doesnt select the node where the click is made. Instead the right clicked node is temporarily selected (for less than a second) and the
selection moves to the previously selected node. Observed that this happen even in the same hierarchy level. This makes implementing contextmenu functionality difficult for my scenario.
It seems like its a bug with Windows Treeview. Is it correct? If so, are there any workarounds to resolve this. I tried programatically setting the selected node of the treeview based on the right click location. But it may create side effects like clicking
while tree is collapsed, clicking outside the bounds etc.,
Please help me on this. Thanks in Advance.