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:
(The commented out line represents a previous failed attempt)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
Here's my html form:
When I run it, I just get a little box that seems to indicate that ActiveX is not happy.Code:<form name="FormInfo"> <input name="HTML"> <input name="HTML2" type="hidden" value="Let's go!"> </form>
Any ideas?
cudabean


Reply With Quote