-
Listview & Pop-up Menu
I was planning on implementing a popup menu on my listview. Is there a way for a right click to select the item underneath the mouse pointer first before popping up the menu? So that the operations in the popup menu correspond to the item underneath.
The only way I can do so right now is by implementing hover select but there's a delay. I was hoping there was a faster way.
-
The listview has a .HitTest method that returns the item based on an X and Y set of co-ordinates. Use the ListView_MouseDown event to determine if the mouse button was the right button, and pass in the X and Y into the .HitTest method
- gaffa