0
votes
Two way interaction with JavaScript in Winforms using Webbrowser
Coding Power Unleashed
– In a recent project I had to integrate Google maps into a Winforms application. To use Google Maps from a desktop client you must be able to call the Javascript in webpage, which can be done with the Webbrowser component. Calling JavaScript from C# Calling JavaScript in a Webbrowser component is very easy. JavaScript is exposed through the IHTMLWindow2 interface which can be referenced from the IHTMLDocument2 interface through the parentWindow property. doc = webBrowser1.Document. DomDocument as IHTMLDocument2;doc.parentWindow.execScript("createMapMarker ...
Statistics
|
Visits by Source |
User Actions |



