Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RTF Control and error 1744
Message
 
 
To
17/05/2005 13:46:13
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01015006
Message ID:
01015657
Views:
21
To function propely, the RTF control has to be hosted on a form. You don't have to make form visible though.

>I created a class OC1, to which I added the RichTextControl, to OCRich2.vcx.
>
>I added the following code to a .prg file.
>
>SET CLASSLIB TO OCRich2
>oRich = CREATEOBJECT('OC1')
>
>and came up with error 1744, "Object class is invalid for this container error."
>
>Is this because the RichTextControl can only be used in classes associated with forms? Is there a way to set up oRich = CREATEOBJECT('OC1') within a custom class?
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform