Context menu for treeview

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I wonder how to display a context menu in a treeview control since this
control does not have the ShortcutMenuBar property. I know there was a API
based method to display context menus in Access 2.
Thanks and regards, Norbert
 
Norbert,

Private Sub tvw_MouseDown(ByVal Button As Integer, ByVal Shift As Integer,
ByVal x As Long, ByVal y As Long)
If Button = acRightButton Then
CommandBars("MyCustomMenu").ShowPopup
End If
End Sub

Regards,
Graham R Seach
Microsoft Access MVP
Canberra, Australia
 
Back
Top