You are currently offline, waiting for your internet to reconnect

You cannot resize or reposition a WebBrowser control window in Windows Internet Explorer 7

This article has been archived. It is offered "as is" and will no longer be updated.
You cannot resize or reposition the WebBrowser control window in Windows Internet Explorer 7 when an application hosts a WebBrowser control. Additionally, the application may not receive the WM_WINDOWPOSCHANGING notification messages as expected. This behavior is a security enhancement in Internet Explorer 7.
More information
This behavior occurs if the script on the WebBrowser control contains calls to any of the following methods:
  • window.moveTo
  • window.moveBy
  • window.resizeTo
  • window.resizeBy
A security change in Internet Explorer 7 prevents the WebBrowser control from spoofing the host application. Therefore, these methods do not work for applications that host the WebBrowser control.
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Article ID: 934363 - Last Review: 01/16/2015 17:12:22 - Revision: 1.0

Windows Internet Explorer 7 for Windows XP, Windows Internet Explorer 7 in Windows Vista

  • kbnosurvey kbarchive kbwebbrowser kbtshoot kbinfo KB934363