|
|
Title | Create an ActiveX control with a popupmenu |
Keywords | ActiveX control, popup menu, context menu |
Categories | ActiveX Controls, ActiveX, Controls |
|
|
Place a form in the ActiveX control project. In the UserControl object's MouseDown event handler, use PopupMenu to display the form's menu.
|
|
' Display the popup menu.
Private Sub UserControl_MouseDown(Button As Integer, Shift _
As Integer, X As Single, Y As Single)
If Button = vbRightButton Then
UserControl.PopupMenu frmMenu.mnuPopup
End If
End Sub
|
|
|
|
|
|