Skip to content
Home > Programming > How to add menu by right clicking listview row item?

How to add menu by right clicking listview row item?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #187954
    method
    Member

    Hi all. could any one show me how i can add menu as shown in pic by right clicking listview item and by selecting an item and it opens new form(linking sub item of menu to form). I be happy if some one show me how this can be done.Thanks

    I created menu using menu editor as shown in pic but i don’t know how to make
    it visible when i right click listview item so i be able to select items.Now the menue is in the top
    of form!!Could u tell me what i am doing wrong? I keep right clicking and nothing happens.Furthermore,
    how to link menu sub items to diffrent forms?



    Private Sub ListView1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
    If Button = 2 Then PopupMenu mnuName

    End Sub

    Private Sub mnuName_Click()
    MsgBox ListView1.SelectedItem.Text
    End Sub

    This is the type of menue i want:

    This how i made menu:

    #187956
    autopilot
    Member

    To do it in VB 2005, you add a “ContextMenuStrip” and then associate that with the object (in your case a listview). I do not know if VB6 has contextmenustrips, but that would be what I would look for.

    autopliot

    #187955

    Sorry to say that but have you typed in google context menu + vb6

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.