I wrote this ActiveX control in VB6 (that implements DHTMLSafe) and I have succesfully deployed it in a .CAB and it presents itself on a web page in IE just fine and it even works! There's just one problem, I want to initialize it by having it read a hidden variable on the page that invokes it. Here's the code where I'm trying to read hidden:
Code:
Private Sub UserControl_Initialize()
  Dim IEDocument As Object

  Set IEDocument = UserControl.Parent
  'DHTMLSafe1.DocumentHTML = IEDocument.FormInfo.HTML.Value
  DHTMLSafe1.DocumentHTML = IEDocument.FormInfo.HTML2
End Sub
(The commented out line represents a previous failed attempt)

Here's my html form:
Code:
<form name="FormInfo">
<input name="HTML">
<input name="HTML2" type="hidden" value="Let's go!">
</form>
When I run it, I just get a little box that seems to indicate that ActiveX is not happy.

Any ideas?

cudabean