ACC97: Cannot Resize Web Browser Control on a Form

Last reviewed: December 19, 1997
Article ID: Q161397
The information in this article applies to:
  • Microsoft Access 97

SYMPTOMS

Moderate: Requires basic macro, coding, and interoperability skills.

When you use the Microsoft Web Browser Control on a form in Microsoft Access 97, the control retains its original size even when you open the form in Design view and resize the control.

RESOLUTION

Remove the Web Browser control from the form and replace it with a new one that is the correct size. To do so, follow these steps:

  1. Open your form in Design view.

  2. Resize the control so it appears the way you want it to. You can only see the size change in Design view of the form.

  3. If the properties sheet is not displayed, on the View menu, click Properties to display the property sheet. Make note of all properties of the Web Browser control so you can transfer them to the new control. Include any Visual Basic code you have attached to event properties for the control.

  4. Delete the control from the form.

  5. On the Insert menu, click ActiveX Control.

  6. In the Insert ActiveX Control dialog box, select Microsoft Web Browser Control, and then click OK.

  7. Set all properties for the new Web Browser control just as they were for the one you deleted, including the new size settings. Do not save the form or switch out of Design view until you have set the Width and Height properties the way you want them.

  8. When the new Web Browser control is sized correctly, save the form.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Internet Explorer version 3.01. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The Microsoft Web Browser Control is included with Microsoft Internet Explorer version 3.01.

Steps to Reproduce Problem

  1. Open the sample database Northwind.mdb.

  2. Create a new form not based on any table or query in Design view.

  3. In the Insert menu, click ActiveX Control.

  4. In the Insert ActiveX Control dialog box, select Microsoft Web Browser Control, and then click OK.

  5. Switch to Form view, and note the size of the Web Browser control on the form.

  6. Switch the form to Design view, and then either decrease or increase the size of the Web Browser control enough to be obvious.

  7. Switch to Form view again, and note that the Web Browser control is the same size it was in step 5. Even if you save the form, and even though the Web Browser control's property sheet reflects its correct size, the control is always displayed in its original size in Form view.

REFERENCES

For more information about Microsoft Internet Explorer version 3.01, please see the following articles in the Microsoft Knowledge Base:

   ARTICLE-ID: Q159707
   TITLE     : Office 97 Requires Internet Explorer 3.01

   ARTICLE-ID: Q152421
   TITLE     : Microsoft Internet Explorer 3.01 for Windows 95 Available


Additional query words: activex ie browse shrink enlarge reduce resize ie4
Keywords : FmrOthr kbinterop
Technology : kbole
Version : 97
Platform : WINDOWS
Hardware : x86
Issue type : kbbug
Solution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 19, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.