dWebBrowser常用知識點

來源:互聯網
上載者:User

標籤: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常用知識點

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.