Article ID: 163412 - Last Review: October 16, 2002 - Revision: 1.1 FIX: Web Browser Position is Wrong on Pageframe PageThis article was previously published under Q163412 On This PageSYMPTOMS
When a Visual FoxPro for Windows version 5.0 form contains a pageframe, and
one of the pages (other than page 1) of the pageframe has an OLE container
control that houses the Microsoft Web Browser control, that container
control will appear on the page in the wrong location at runtime.
It will be positioned to the upper left of where it was positioned at design time. Because it is still located on the pageframe, its dimensions will be shrunken so that it fits on the page. If the Web Browser is located on the first page of the pageframe, its loading will throw the error:
"OLE error code 0x80004005. Unspecified error."
RESOLUTION
The following workaround applies only to placement of the Web Browser of
pages other than page 1 of the pageframe control.
The location of the OLEContainer control can be reset in the Activate event method of the page of the pageframe containing the control. An example of the code to do this follows: To position the Web Browser correctly, you must first switch from a page with an ActiveX control to a page without one, and then to the page with the Web Browser control. STATUS
Microsoft has confirmed this to be a bug in the Microsoft product listed at
the beginning of this article. This has been corrected in Visual FoxPro
6.0.
MORE INFORMATIONSteps to Reproduce Behavior
| Article Translations
|
Back to the top
