You may need to manually add a runtime license to the ActiveX control:
1. Use aximp to create interop assemblies. (e.g. aximp
/out:C:\temp\AxMyProject.dll C:\Windows\System32\MyProject.ocx)
2. Add reference to the created assemblies in the project (e.g.
AxMyProject.dll (for the AxHost Interop) and MyProject.dll (for COM
Interop))
3. Create the control (e.g. Dim myControl As New
AxMyProject.AxMyLicensedControl())
4. Determine and note the Runtime License Key for the control. (e.g.
"gnvlslnjskvlmlgnnimh").
5. Insert the runtime license into the control.
Dim f As System.Reflection.FieldInfo
f = GetType(AxHost).GetField("licenseKey", _
Reflection.BindingFlags.NonPublic _
Or Reflection.BindingFlags.Instance)
f.SetValue(myControl, "gnvlslnjskvlmlgnnimh")
6. You will need to add the license to every instance of every ActiveX
control that requires a runtime license. So if you were to create a second
instance of MyLicensedControl you would have to add the license to that
instance as well.
One way to determine the license key is with the following KB article:
Q151771 LICREQST.EXE Requesting a License Key from an Object
http://support.microsoft.com/support/kb/articles/q151/7/71.asp