Article ID: 934363 - Last Review: April 18, 2007 - Revision: 1.0

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

Expand all | Collapse all

INTRODUCTION

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.

APPLIES TO
  • Windows Internet Explorer 7 for Windows XP
  • Windows Internet Explorer 7 in Windows Vista
Keywords: 
kbwebbrowser kbtshoot kbinfo KB934363
 

Article Translations