Results 1 to 2 of 2

Thread: Treeview and right click menu

  1. #1
    Guest
    In the MouseUp event of the treeview, conduct a HitTest to see if you are over a node, and if you are, then show the menu. eg:

    [code]
    Set lItem = Treeview1.HitTest( X, Y)
    If Not lItem is Nothing then
    PopUpMenu MenuName1, , X, Y
    End If
    [code]

    I didn't plug that through VB, so I may have got my parameteres in the wrong order, but you get the drift

    cheers

    - gaffa

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091
    Thanks! Worked like a charm!

    Visual Studio 2010

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