I have a list box control on a form and i'd like to set up a right-click property. Can this be done at all? When I open the Events tab on the property window..there is no right-click property
i've set this thing up..so i have a form with a list box control on it and i want that when the user right-clicks on the list box, the row selected would be noted in order to open a contacts tab... however i'm encountering probs..
I used the MouseUp event as follows:
Code:
Private Sub List0_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Select Case Button
Case 2 ' right click
MsgBox (List0.ListIndex)
End Select
End Sub
However, it seems the ListIndex property is not returning the right row number...at first it starts returning the right row number but after a few right-clicks, the numbers are messed...
any ideas?!
i am attaching a sample database for u to browse..