상세 컨텐츠

본문 제목

.NET WebBrowser control 이용하기

프로그램개발/윈도우

by fsteam 2019. 10. 9. 11:34

본문

.NET 에서 내장 브라우저 컴포넌트는 디폴트가 IE7 설정임.

해당 운영체제의 최신 IE 버전으로 에뮬레이션 설정해야.. 최신 사이트에 대응이 됨.

 

 

참고 URL 

https://stackoverflow.com/questions/42365833/webpage-works-in-ie-chrome-and-firefox-but-not-when-using-the-net-webbrowser/42367088#42367088

 

Webpage works in IE, Chrome and Firefox, but not when using the .NET WebBrowser control

I'm using the WebBrowser control in Visual Studio 2010 and trying to display the page: http://lk21.org. Inside that webpage there are lots of scripts loaded, and it works fine if I open it through...

stackoverflow.com

요약

1. 현재 운영체제의 IE 버전 얻어오기

2. 레지스트리에 내 프로그램과 버전값 추가

 

참고

 - 브라우저 상수
IE7 = 7000
IE8 = 8000
IE8Standards = 8888
IE9 = 9000
IE9Standards = 9999
IE10 = 10000
IE10Standards = 10001
IE11 = 11000
IE11Edge = 11001

 - 레지스트리 경로
\HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION
값 추가 : ex) my.exe, 11000