Sparky191
asked on
VB6, ActiveX controls
I'm trying to debug a simple ActiveX OCX. I have opened the project, and added a form to which I've added the OCX project as a control. The problem is that the OCX initialises before the form does, thus any parameters I send in from the form aren't sent in until after the control is loaded. On the web page this is fine as the params are sent in by the object tag in the asp. I was wondering is there a way to make the form load first and if thats the right way to do this.
Thanks.
Thanks.
ASKER
I'm using a property bag in the OCX.
What seems to happen is that at runtime the OCX initialises, then the form loads, passes params. Then when you run the OCX by clicking the buttons on the control, it reads in the params at that point.
So when the OCX intialises theres params set for it. Depending on these its sets labels oon the OCX form. (not the VB container form)
Maybe its a problem of program logic than anything else. I'm new to using ActiveX controls.
What seems to happen is that at runtime the OCX initialises, then the form loads, passes params. Then when you run the OCX by clicking the buttons on the control, it reads in the params at that point.
So when the OCX intialises theres params set for it. Depending on these its sets labels oon the OCX form. (not the VB container form)
Maybe its a problem of program logic than anything else. I'm new to using ActiveX controls.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ReadProperties of the OCX.
Can you post code? The OCX code that is.
ASKER
No can't do that sorry. Its probably my logic.
Have you got code samples?