My requirement is to load HTML5/AngularJS form in the web browser control of WinForm app and exchange data between both.
To pass data from .Net form to WebBrowser control HTML/Angular form, I thought to call simple JavaScript method of HTML page and that method would subsequently trigger Angular complex workflow.
This is how I do call JavaScript function from my winform.
WebBrowserControl1.InvokeScript("FunctionName", new object[] {"param"});
Could you suggest whether this approach is good for large applciation or there is a better way to pass data from .net winform to webbrowser AngularJS form.
Please note sometime back I have posted question to call Typescript function and I got answer as well. However, that was to initialize class of Angular from webbrowser control which is not feasible for complex Angular app.
Hence I have thought this approach to call simple JS function of Angular page and that would trigger complex angular flow.
Call TypeScript function from C# webbrowser control
Thanks in advance for your help.
Thanks, Manoj