* To create an ActiveX document
Visual Basic automatically adds a UserDocument designer to the project. If the designer is not immediately visible, right-click over its default name , UserDocument1, in the Project Explorer window, then click View Object . When the designer appears, its default name is visible in the title bar.
Object | Property | Value |
Command button | Name | CmdNavigateTo |
Caption | Navigate To | |
Text box | Name | TxtURL |
Text | http://localhost |
' Use the Hyperlink object method NavigateTo ' to go to the URL in txtURL. Hyperlink.NavigateTo txtURL.Text
c:\Program Files\DevStudio\VB\FirstDoc.vbd
ActiveX documents are forms that can appear in ActiveX document containers. They can contain insertable objects, such as Microsoft Excel pivot tables, and they can show message boxes and secondary forms. An ActiveX document differs from a traditional document in that it offers not only the full functionality of an application, but also the ability to store and distribute copies of the data intrinsic to the application.
Hyperlink objects, merge menus , the PropertyBag object, and the ability to automatically download components over the Internet are some of the features you can include in your ActiveX documents.