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

Article translations Article translations
Article ID: 934363 - View products that this article applies to.
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.

Properties

Article ID: 934363 - Last Review: April 18, 2007 - Revision: 1.0
APPLIES TO
  • Windows Internet Explorer 7 for Windows XP
  • Windows Internet Explorer 7 in Windows Vista
Keywords: 
kbwebbrowser kbtshoot kbinfo KB934363

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com