Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why doesn't this work?
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00214200
Message ID:
00214219
Views:
18
Hi Scott ---

Hmm...are you sure about that object name, RICHTEXT.RichTextCtrl.1?

OK, try this. Create a classlib or modify an existing classlib and subclass the RTF control. Change your AddObject code to instance from the subclass. See it it works now.


>oForm=createobj("form")
>oForm.show()
>oForm.addobject("rtf","RICHTEXT.RichtextCtrl.1")
>
>This gives this error: Object class is invalid for this container
>
>Why can't I add an the rich-text editor on the fly? i can do it in design mode.
>
>Any Ideas?
>
>tia
>
>scott
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform