webbrowser-control

WebBrowser control to use IE9

不问归期 提交于 2019-12-28 18:20:08
问题 I want that the WebBrowser control to use IE9. IE9 is installed on the computer, but the WebBrowser control is still using IE8. I verified with http://www.whatbrowser.org/en/. I try to make some changes to the registry (found a solution here) but is not working. 回答1: I think it is the user agent string that is being passed to the site. It is misidentifying it as IE8 as it might not be meeting the requirements in their logic to match as IE9. I can see the same thing happen on my box as well.

how to webpage textbox onclick event fire from winform textbox

喜夏-厌秋 提交于 2019-12-26 03:49:33
问题 I have below code,when i search from my winform textbox and click search button but webpage text box onclick event not fired. How to do this? here is :http://www.heathrow.com/arrivals when i click search button page still same position, show in 2nd number image. internet explorer 11 i have installed private void button2_Click(object sender, EventArgs e) { HtmlDocument doc = webBrowser1.Document; HtmlElement HTMLControl2 = doc.GetElementById("searchInput"); if (HTMLControl2 != null) { //

Google search is not working in web browser control

自古美人都是妖i 提交于 2019-12-25 12:17:21
问题 I have developed a browser using the standard WebBrowser control in my application that is built against CF 3.5. Google search is not working in the browser. That is when i navigate to www.google.co.in and type a keyword and click on the serach button nothing is happening. Outside the application from the device if i try the same thing in IE am getting a security warning dialog box and if ok is clicked search results are shown. So in my case do i need to set property on the webbrowser control

WPF Design Considerations Using WebBrowser Control

人走茶凉 提交于 2019-12-25 08:26:14
问题 I have to build a program that will allow me to track from a system different trigger points being hit. When a trigger has been hit within another system a web service is called, this web service will log to a database the following: Affiliate Id Trigger Id Reference Code My program is to read this data and invoke a call to affiliates websites for affiliate tracking. The only trouble is, these sites do not offer any nice web service or form post, it is done via tracking pixels (images created

MouseEvent undefined in .NET WebBrowser control

℡╲_俬逩灬. 提交于 2019-12-25 08:15:26
问题 Why this is happening and how to fix this issue ? Here is what's happening. A error is thrown by WebBrowser control which says : An error has occureed in the script in this page. Error: 'MouseEvent is undefined' SetFeatureBrowserFeature("FEATURE_BROWSER_EMULATION", 9999); //This forces my WebBrowser control to use IE9+ which in my case it's using IE 10 var anyScripts = webBrowser1.Document.GetElementsByTagName("script"); if (anyScripts == null || anyScripts.Count == 0) webBrowser1.Document

calculate timing in webBrowser.DocumentCompleted

守給你的承諾、 提交于 2019-12-25 08:09:23
问题 How can we calculate timing? I mean when pressed click it's should start(time) and when finished load page than stop. when you searching in google, its shown you a time how long it takes. /* foreach (string bug in bugs) { webBrowser.Navigate(new Uri(url)); webBrowser.Document.GetElementById("product").SetAttribute("value", product); webBrowser.Document.GetElementById("version").SetAttribute("value", version); webBrowser.Document.GetElementById("commit").InvokeMember("click"); //Need code to

Zoom WPF-WebBrowser-Control Content

天大地大妈咪最大 提交于 2019-12-25 07:50:50
问题 I´d like to show a website inside the wpf WebBrowser Control. But the content size is to large, so that there are scrollbars as you can see here: I would like to display the whole site in this window, without resizing it. I´d like to zoom inside the page so that it looks like this: I´d like to prevent doing it with JavaScript. The WPF way shown here WPF WebBrowser - How to Zoom Content? also didn´t work for me. It always says the mshtml.IHTMLDocument2 is null. I also like to prevent doing it

Is it possible to have control on WinForm from another c# console app?

☆樱花仙子☆ 提交于 2019-12-25 07:50:23
问题 I'm 2 days old .NET C# coder trying to get control on ProjectA - WinForm from ProjectB - C# console app. Basically I'm using WatiN to automate test within WebBrowser control in ProjectA. When I run ProjectB which executes winformWithWebBrowserTest.exe, the winform with webbrowser shows up. But then it fails to access form1. How can I access the webbrowser control from ProjectB ??? Error: System.Runtime.IteropServices.InvalidComObjectException COM object that has been separated from its

Unsupported browser in visual studio 2010 C#

你离开我真会死。 提交于 2019-12-25 06:13:31
问题 I want to display GPS coordinates on Google Maps. For this purpose I chose web browser from the toolbox. But it show an error of unsupported browser. I tried updating my Internet Explorer. I also set Google Chrome as the Debugging Browser in Visual Studio but it didn't work. This is the part of code where I am accessing the web browser. try { StringBuilder queryaddress = new StringBuilder(); queryaddress.Append("https://maps.google.com/maps?q="); if (lat != string.Empty) { queryaddress.Append

WebGL IE in webbrowser control

霸气de小男生 提交于 2019-12-25 05:35:47
问题 I am testing the use of WebGL within an IE webbrowser control in a .NET Winforms application. I have installed IE11 preview and checked that that the webbrowser control reports version 11. If I run this page [http://www.html5canvastutorials.com/three/html5-canvas-webgl-rotating-cube/] page in IE11 I see a rotating cube. In the winforms app, it complains of a script error. I have tried this with several WebGL sites with similar results. Any ideas? 回答1: By default, the WinForms WebBrowser