Is there a right-click event ? (1 Viewer)

ray147

Registered User.
Local time
Today, 12:48
Joined
Dec 13, 2005
Messages
129
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 :confused:

Thanks!
 

ray147

Registered User.
Local time
Today, 12:48
Joined
Dec 13, 2005
Messages
129
Thanks!

I think I can figure it out now :)
 

ray147

Registered User.
Local time
Today, 12:48
Joined
Dec 13, 2005
Messages
129
probs with ListIndex property on MouseUp event

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..

thanx!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top Bottom