Hello,
Situation : (.NET 1.1, VS2003) I'm creating a C# application which uses a specific ActiveX control (not a web application!). When I use a form and add the ActiveX control the Visual Studio way, everything works fine. But since the control does not provide/need a GUI, I want the application to be able to use it without GUI.
The problem is that I don't know how to initialize the ActiveX control programatically to set in the correct OcxState.
I tried the solution presented here :
https://www.experts-exchange.com/questions/23204692/How-to-set-hidden-ActiveX-PARAM-properties.html
While trying to translate this to C#, the MethodInfo turned out to be null, cause my .NET does not seem to know "System.Windows.Forms.Unsa
feNativeMe
thods.IPro
pertyBag.W
rite".
But since I don't need to set Properties, I removed the stuff I believed are unnecessary in my case.
Then end up setting the OcxState of the ActiveX control, but still the first method invocation on the control fails.