Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

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.

↑ Back to the top


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.

↑ Back to the top


Keywords: KB934363, kbinfo, kbtshoot, kbwebbrowser

↑ Back to the top

Article Info
Article ID : 934363
Revision : 1
Created on : 4/18/2007
Published on : 4/18/2007
Exists online : False
Views : 294