I have an ActiveX control (created using C #) that I add to a form in Visual FoxPro using late binding. This works without problems when I register a control.
I want to use reg free COM and created the necessary manifest files. Now it loads and displays in an inactive state until I double-click or activate it grammatically. I do not think this has anything to do with reg free com manifest files. However, is there something I need to do to set it up before / after late binding of the AddObject() call?
this.AddObject('OleControl1', 'oleControl', 'SomeCompany.SomeOleControl')
When I check the OleTypeAllowed property of the OleControl created by AddObject() it is 1 (an inline OLE object) instead of -2 (an ActiveX object). Thus, OleControl was created for the wrong type.
I also tried the following:
DEFINE subclass OleControl and set the property OleTypeAllowed = -2 . Late binding is used to load the control. This does not work as required. OleTypeAllowed back as 1
An ActiveX control is registered. An ActiveX control has been added to the project as a subclass using a visual editor. Unregistered control. Late binding is used to load the control. This does not work as required. OleTypeAllowed back as 1 .
Can I load OleControl as an ActiveX control?
Any input from VB that I can convert to FoxPro will also be appreciated.
source share