Visual Basic Concepts
You can add menus to your ActiveX document using the Menu Editor. Because an ActiveX document alone cannot have a menu, the menu you create will be merged with the application you used to view the ActiveX document. Thus, you must consider menu negotiation when adding a menu to an ActiveX document.
When users navigate to your ActiveX document, they may not have any indication of its origin (or that it is an ActiveX document). To remedy this, you should always include an "About" form with your ActiveX document.
Note This topic is part of a series that walks you through creating a sample ActiveX control. It begins with the topic Creating an ActiveX Document.
To add a menu and About box to the FirstDoc ActiveX document
Object | Caption value |
frmAbout | About FirstDoc |
lblTitle | FirstDoc ActiveX Document |
lblVersion | Version 1.0 |
lblDescription | ActiveX document |
Private Sub mnuAbout_Click()
frmAbout.Show vbModal
End Sub
Once you have added a menu to the UserDocument, you can run the project, view the ActiveX document in Internet Explorer, and see the how the menu has been negotiated.
This topic is part of a series that walks you through creating a sample ActiveX document.
To | See |
Go to the next step | Life Cycle of a UserDocument |
Start from the beginning | Creating an ActiveX Document |