Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
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-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated