-
Dear Members,
The controls like treeview, listbox has click event. If you want to capture the right click event then we use mousedown event. We can find the pressed button in this event. But problem is the node (in case of tree view) on which user clikced left button does not get selected. This happens in Windows Explorer. If you right click or left click on any folder then it is getting selected.
If I want to achieve this on TreeView nodes then how it can be programmed. I will be thankful to the repliers.
Thanks
Vinay Tandel.
-
Hi,
Instead of using the MouseDown event to find out the mouse click type, use the MouseUp event instead. The item will then be selected whether or not you pressed the right or left mouse button and you can still detect this.
hope this helps
Shaun