Article ID: 934363
Article Last Modified on 4/18/2007
APPLIES TO
- Windows Internet Explorer 7 for Windows XP
- Windows Internet Explorer 7 in Windows Vista
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.
Keywords: kbwebbrowser kbtshoot kbinfo KB934363