Adding a Javascript Block Into a Form Hosted by WebBrowser Control Today I found myself with a need to add a javascript block into a WebBrowser control in order to do some work. This post will show you the steps to do exactly that. The Problem In a project I’m consulting for there was a need to dynamically add a javascript block into a web form that is hosted inside a WebBrowser control. So what can we do? The Solution We can use the Microsoft HTML Object Library to achieve the task. The Microsoft...
Invoking Javascript From a WebBrowser Control Today I got a request to use A WebForms application inside a WinForms application. One problem that we needed to solve was how to make an interaction between the WinForm and the WebForm it uses. The post will show the solution. Invoking Javascript From a WebBrowser Control When you want to use a WebForm within a WinForms application you should use the WebBrowser control. Taken from MSDN the WebBrowser control “Enables the user to navigate Web pages inside...