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.
This behavior occurs if the script on the WebBrowser control contains calls to any of the following methods:
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.