Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleCreate an ActiveX control with a popupmenu
KeywordsActiveX control, popup menu, context menu
CategoriesActiveX 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
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated