Hi all,
I'm trying to dynamically add an ActiveX control to my application, without having to place it on a form.
However, when I do place the ActiveX control using the Visual Studio designer, initialization code is generation which contains a statement for setting for OcxState of the ActiveX control.
When an ActiveX control is added to a form using the designer, it seems like that the OcxState is serialized into a resources file, which is later retrieved at the initialization of the form.
Now I want to set that OcxState dynamically in code, so I can create some kind of wrapper class for the ActiveX for in my class library.
Anyone knows how to dynamically set the OcxState of an ActiveX control?
Thanks in advance!
Mathieu