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 menu bar
KeywordsActiveX control, menu, menu bar
CategoriesActiveX Controls, ActiveX, Controls
 
Place a form in the ActiveX control project. Use the SetParent API function to display the form inside the control.
 
Public Sub ShowMenu()
    If m_ParentHwnd <> 0 Then Exit Sub
    m_ParentHwnd = SetParent(frmMenu.hWnd, hWnd)
    frmMenu.Move 0, 0
    frmMenu.Show
End Sub
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated