-
Hi,
I have the popupmenu working for the mousedown event of a ListView but I'm encountering the following problem.. If I right-click over an item that is not already selected, it will not select it before the menu pops up. In other words, say Item 1 is currently selected and then I right click over Item 3, Item 1 remains selected..
Windows Explorer and WinZip seem to be able to accomplish this so why can't I?
The code I'm using is as follows:
Code:
Private Sub ListView_MouseDown(Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single)
If Button = 2 Then PopupMenu mnuSettings, vbPopupMenuRightButton
End Sub
Any help would be appreciated..
Dan
-
Dummy me! I got it.. I should've put it in the MouseUp event, not MouseDown..
Dan