When I right click on my ComboBox control, a shortcut menu is displayed. How do I get access to the control's ContextMenu so I can program the menu items?
In VB they are called Popup Menus, What you do is use the menu editor to create a menu, but untick the visible box. The add code similar to that below, however I am not sure if they can be used on combo boxes. You will have to test it. You can also search VB help for Popup Boxes.
Private Sub Form_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
PopupMenu mnuFile
End If
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.