ACC2000: Cannot Resize Web Browser Control on a Form
ID: Q207871
|
The information in this article applies to:
Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and a Microsoft Access project (.adp).
SYMPTOMS
When you use the Microsoft Web Browser control on a form in Microsoft
Access, 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 size that you want. To do so, follow these steps:
- Open your form in Design view.
- Resize the control so that it appears the way that you want it to. You can only see the size change in Design view of the form.
- If the properties sheet is not displayed, on the View menu, click Properties to display the property sheet. Record the pertinent properties of the Web Browser control so that you can transfer them to a new control. Include any Visual Basic for Applications code you have attached to event properties for the control.
- Delete the control from the form.
- On the Insert menu, click ActiveX Control.
- In the Insert ActiveX Control dialog box, select Microsoft Web Browser Control, and then click OK.
- Set all properties for the new Web Browser control just as they were for the one that 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 that you want them.
- When you are satisfied that 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, 4.x and 5.0.
MORE INFORMATION
Steps to Reproduce Problem
- Open the sample database Northwind.mdb.
- Create a form not based on any table or query and open it in Design view.
- On the Insert menu, click ActiveX Control.
- In the Insert ActiveX Control dialog box, select Microsoft Web Browser Control, and then click OK.
- Switch to Form view, and note the size of the Web Browser control on the form.
- Switch the form to Design view, and then either decrease or increase the size of the Web Browser control enough to be obvious.
- Switch to Form view again, and note that the Web Browser control is the same size that 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.
Additional query words:
ie browse shrink enlarge reduce resize ie4 pra ie5
Keywords : kbinterop kbole kbdta FmrOthr
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 13, 1999