Editing the HTML File

Internet Explorer User's Guide > Creating ActiveX Documents in Visual Basic

The HTML file which has been generated by the Package and Deployment Wizard needs to be edited, so that it will properly register the Text Control ActiveX. The VB documentation states that the HTML file is only required if you use Internet Explorer 3, and that you can use the .vbd file instead if you have IE 4 or later. However, this is not true if the document contains ActiveX controls. ActiveX controls need to be included by their class ID in an Object tag. This is the modified HTML code:

Loading ...
<OBJECT ID="UserDocument1"
Sub Window_OnLoad
   Document.Write "<FRAMESET>"
   Document.Write "<FRAME SRC=""UserDocument1.VBD"">"
   Document.Write "</FRAMESET>"
End Sub