BUG: Web Browser Position is Wrong on Pageframe PageLast reviewed: April 24, 1997Article ID: Q163412 |
The information in this article applies to:
SYMPTOMSWhen 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."There is no known workaround for this error. The control will be drawn on page 1 but will be larger than intended, obscuring the tabs for the remaining pages in the pageframe.
RESOLUTIONThe 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:
This.Olecontrol1.Left = 0This workaround will fail if the active page from which you move contains any of the OCX (ActiveX) controls that install with Visual FoxPro. If you switch from a page with an ActiveX control to the page with the Web Browser, the error will cause the Web Browser to locate at the upper left of where it should be. 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.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft product listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
|
Keywords : buglist5.00 FxinteropOcx FxinteropOle FxtoolFormdes kbinterop vfoxwin vfpbug5.0a kbbuglist
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |