Results 1 to 3 of 3

Thread: How to display pop up menu when right click treeview node **RESOLVED**

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982

    How to display pop up menu when right click treeview node **RESOLVED**

    Can anyone tell me how to display a popup menu when right clicking on a treeview node.
    Last edited by davidrobin; Dec 2nd, 2003 at 08:34 AM.

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    VB Code:
    1. Private Sub TreeView1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
    2.     If Button = vbRightButton Then
    3.         Me.PopupMenu <MenuName>
    4.     End If
    5. End Sub

    Make sure <MenuName> is a parent menu.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    Its funny how the more questions you ask, the more you recognise other forum users.

    Thanks for your help.

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