Can anyone tell me how to display a popup menu when right clicking on a treeview node.
Can anyone tell me how to display a popup menu when right clicking on a treeview node.
VB Code:
Private Sub TreeView1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single) If Button = vbRightButton Then Me.PopupMenu <MenuName> End If End Sub
Make sure <MenuName> is a parent menu.
Its funny how the more questions you ask, the more you recognise other forum users.
Thanks for your help.