>>>I am trying to add a Web Browser control to the main VFP window via a container class using:
>>>
>>>_screen.addobject("oHTMLNAV","ldsBrowser")
>>>
>>>I get this message when ever I launch the app.
>>>
>>>"Object Class Invalid for this container".
>>>
>>>My class w/ Browser control works if i drop it on a form but not on the main window - i can drop other containers on the main window and they work fine. And, if I remove the Browser control from the class and replace it with a label, it works fine. Whats up with this?
>>>
>>>JP
>>
>>Interesting. it seems the _SCREEN object does not accept any OLE controls as >members. There must be underlying reasons that this error is given, I can only >guess. FWIW, I also tried to add an IE object to a container and subclass >that, adding it to the screen, and got the same error.
>
>This is a real drag - I have tried the previous solutions. 1) _webbrowser4 is in a VCX (_webview.vcx) so instantiating as an ole object should be unnecessary. 2) I have other objects on _screen and really don't want to place a foundation form over it. I have an outlook style button bar on the left side and want to fill the rest of _screen with a browser - it would be cool if I could get it to work.
>
>JP
You can put it on a form, take away the form's border, splashscreen, titlebar, etc, and make it not movable, alwaysOnBottom, and the user would not know the different.
Erik Moore
Clientelligence