2011-03-09 2 views
0

나는 Windows CE 장치에 대한 .NET에서 WebBrowser 컨트롤을 사용하여 특정 페이지로 이동하는 경우, 그것은 ... 구글 페이지 page.eg 검색 버튼 버튼에 대한 클릭 수를 참가하는웹 브라우저 컨트롤

실제로이 장치는 1 대의 장치에서 작동하며 다른 장치에서는 작동하지 않습니다.

누구든지이 문제를 해결할 수 있습니까?

+1

장치처럼 보일 것인가? SmartPhones 또는 PocketPc 터치 스크린? 어디에서 작동합니까? 어떤 모바일 버전의 모바일? –

+0

@Davide : 둘 다 PocketPc 기기입니다 – Anant

+0

문제는 http://stackoverflow.com/questions/2689030/google-search-is-not-working-in-web-browser-control과 동일합니다. – Anant

답변

0

레지스트리를 설정해야하며 설정할 필요가있는 키는 다음과 같습니다.

Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings 및 현재 사용자 레지스트리에서 "WarnOnZoneCrossing"을 "WarnOnZoneCrossing"으로 설정해야합니다.

Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ Zones \ 3이며 로컬 컴퓨터 레지스트리에서 "1601"을 '0'으로 설정하고 "1609"를 '0'으로 설정해야합니다.

코드는

using (RegistryKey key = Registry.CurrentUser.OpenSubKey (@"\Software\Microsoft\Windows\CurrentVersion\Internet Settings", true)) 
      { 
       if (key == null) 
       {     Registry.CurrentUser.CreateSubKey(@"\Software\Microsoft\Windows\CurrentVersion\Internet Settings"); 
        using (RegistryKey newKey = Registry.CurrentUser.OpenSubKey(@"\Software\Microsoft\Windows\CurrentVersion\Internet Settings", true)) 
        { 
         newKey.SetValue("WarnOnZoneCrossing", 0); 
        } 
       } 
       else 
        key.SetValue("WarnOnZoneCrossing", 0); 
      } 
      //enable submission of non-encrypted form data 
      using (RegistryKey key = Registry.LocalMachine.OpenSubKey(@"\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", true)) 
      { 
       if (key == null) 
       { 
        Registry.LocalMachine.CreateSubKey(@"\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3"); 
        using (RegistryKey newKey = Registry.LocalMachine.OpenSubKey(@"\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", true)) 
        { 
         newKey.SetValue("1601", 0); 
        } 
       } 
       else 
        key.SetValue("1601", 0); 
      } 
      //enable the display of mixed content 
      using (RegistryKey key = Registry.LocalMachine.OpenSubKey(@"\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", true)) 
      { 
       if (key == null) 
       { 
        Registry.LocalMachine.CreateSubKey(@"\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3"); 
        using (RegistryKey newKey = Registry.LocalMachine.OpenSubKey(@"\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", true)) 
        { 
         newKey.SetValue("1609", 0); 
        } 
       } 
       else 
        key.SetValue("1609", 0); 
      } 
관련 문제