Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
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
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:
- 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
| kbwebbrowser kbtshoot kbinfo KB934363 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate