>>>I have been using an ActiveX HTML editor by placing it in a container object and saving the container as a class in a VCX. Since that container is always used inside another container I decided to load the editor directly with code
.AddObject("oBrowser","olecontrol", "rmpHTML.HTMLed")
when I create the outer container. However, I cannot figure out how to access the ActiveX editor's methods and events.
>>>Any ideas?
>>
>>:-)
>>That's is why it is better to place it in design time.
>>Check EVENTHANDLER() function in HELP
>
>I was trying to add it at run time to simplify things. The user can add the containers as needed. If I have to use EVENTHANDLER() then it makes a lot more sense to go back to the old way and just have to put up with two containers.
>
>Thanks for the help.
OK,
Then make your own Class based on Container in which ActiveX is placed.
Handle all events there, and let user put this container, not ActiveX directly.
BTW with putting ActiveX in your own VCX based container you wouldn't have problems with ActiveX certificate.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.