I have created a .NET user control with an ActiveX interface. It works well.
Now, I want to be able to read and write from the property bag for the ActiveX interface.
How would I do this?
I have created a .NET user control with an ActiveX interface. It works well.
Now, I want to be able to read and write from the property bag for the ActiveX interface.
How would I do this?
I was trying to make my C# ActiveX receive the PARAM properties in an OBJECT tag.
I tried to use the solution proposed here, and I found IE crashing when loading my object...
Finally I could get it right using different IPropertyBag and IPersistPropertyBag interfaces:
Then I implemented the load methods like this:
And it worked.
Hope this can help someone in the same situation.
The easiest is to use client script to pass the parameters values to the ActiveX
If you can't use client script, you can try that way:
Let's say you want to read a parameter such as:
You need to expose the following COM interfaces in your project:
Your activeX control should implement these interfaces. There's one method you need to implement :
Voilà! parameter should be equal to "valuetoRetrieve"