Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing an OCX
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00319745
Message ID:
00321106
Views:
21
>>You can simply do an Form.NewObject("oControlName","ClassName","VCXName.vcx")
>
>Whoops, my reply was supposed to be to both you and Erik. Thanks Markus. I was trying to use CREATEOBJECT to an existing property.

It depends on what you want to do. Some controls (like Microsoft.XMLDOM) can rund stand allone and therefore be instantiated using CreateObjet(). All controls that require a container to live in (most ActiveX Controls are like that) can be instantiated with the AddObject() and NewObject() methods.

Markus




Markus Egger
President, EPS Software Corp
Author, Advanced Object Oriented Programming with VFP6
Publisher, CoDe Magazine
Microsoft MVP since 1995
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform