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.
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.
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
Its funny how the more questions you ask, the more you recognise other forum users. Thanks for your help.
Forum Rules