passing parameters to OCX
Thanks you are absolutely correct. Throughmuch hard work the other day. I
figured out that when I pass in a param and Read it with my own
implementation of ReadProperties. The height and width were reset to 0. So
the resize and show methods would do nothing. By resetting the height and
width within the ReadProperties. It was solved.
And your answer is exactly the problem. Thanks for the response.
Quote:
> Hello,
> Try this
> <OBJECT ID="ctlServerExplorer"
> CLASSID="CLSID:0B482DCC-5D2A-45B2-932F-52BFE19B1A51"
> CODEBASE="AdminAlertInterface.CAB#version=1,0,0,98" WIDTH = 500 HEIGHT =
> 500>
> <PARAM NAME="SoapServer" VALUE="testweb3">
> </OBJECT>
> Without witch & height as standard param it will not display the activeX
> control in browser.
> Peter.
> > I have an OCX written inVB6 that is working fine. I am trying to change
> it
> > so that i can pass one parameter to it from the HTML page.
> > So, I change the OBJECT tag to include on PARAM tag like
> > <OBJECT ID="ctlServerExplorer"
> > CLASSID="CLSID:0B482DCC-5D2A-45B2-932F-52BFE19B1A51"
> > CODEBASE="AdminAlertInterface.CAB#version=1,0,0,98">
> > <PARAM NAME="SoapServer" VALUE="testweb3">
> > </OBJECT>
> > Now the control still initializes and I can access the value of the
> > parameter within the UserControl_ReadProperties method. However, the
> > control does not appear in the browser anymore. If I take out the PARAM
> > tag, the control appears as expected.
> > Is there something else that I need to do within my implementation of
> > ReadProperties to get the Control to still appear in the browser?
> > --
> > Ryan Powers