CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 1999
    Location
    Austria
    Posts
    53

    Pull Down Menu on Right Mouse click

    I have a List View Control in my Application.
    How can I make a pull down Menu when the user clicks the Right Mouse Button on an Entry.

    mfG Pueromane


  2. #2
    Guest

    Re: Pull Down Menu on Right Mouse click

    Create Menu, set Visible=False and in Mous_Down event for List put:

    private Sub List1_MouseDown(Button as Integer, Shift as Integer, X as Single, Y as Single)
    If Button = 2 then
    Form1.PopupMenu mnuFirst 'the name of Menu is mnuFirst
    End If
    End Sub



    Vlad


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured