標籤:war html oct 錯誤 cti http direct value 經驗
1.webbrowser調用的就是本機IE,並且webbrowser預設就是運行在IE7 mode下,除非你改變它.
2.不裝IE,無法用webbrowser.
3.設定WebBrowser在IE9 mode下工作呢
There are two different sets of keys for 32 bit and 64 bit applications.
32 bit:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION
Value Key: yourapplication.exe
64 bit:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION
Value Key: yourapplication.exe
The value to set this key to is (taken from MSDN here) as decimal values:
9999 (0x270F)
Internet Explorer 9. Webpages are displayed in IE9 Standards mode, regardless of the !DOCTYPE directive.
9000 (0x2328)
Internet Explorer 9. Webpages containing standards-based !DOCTYPE directives are displayed in IE9 mode.
8888 (0x22B8)
Webpages are displayed in IE8 Standards mode, regardless of the !DOCTYPE directive.
8000 (0x1F40)
Webpages containing standards-based !DOCTYPE directives are displayed in IE8 mode.
7000 (0x1B58)
Webpages containing standards-based !DOCTYPE directives are displayed in IE7 Standards mode.
參考:
http://www.cnblogs.com/liuzhendong/archive/2012/03/21/2410107.html
Webbrowser控制項中屏蔽彈出指令碼錯誤對話方塊
http://www.cnblogs.com/qqflying/archive/2012/07/25/2607881.html
經驗總結:WebBrowser自動點擊彈出提示框alert、彈出對話方塊confirm、屏蔽彈出框、屏蔽彈出指令碼錯誤的解決辦法
http://www.cnblogs.com/qqflying/archive/2012/07/25/2608038.html
利用webBrowser擷取頁面iframe中的內容
[轉]如何解決WebBrowser.DocumentCompleted事件的多次調用
WebBrowser常用屬性方法
webBrowser中操作網頁元素全攻略
Winform 部署mshtml程式集出錯的解決方案(該應用程式要求在全域組件快取GAC中安裝程式集miscrosft.mshtml)
dWebBrowser常用知識點