I have WinForm with WebBrowser control where I open HTML5 + Angular JS (TypeScript) form. I want to call typescript function from my C# code but it is not working with InvokeScirpt() method.
webBrowser1.Document.InvokeScript("method", new object[] {"123", "453")});
I am able to call Javascript method using this way when i load HTML + Javascript page in webbrowser control.
Also, please note typescript function I am able to call from the HTML page I have (on button click)
Could you please suggest whether this is a right way to call typescript function from C# webbrowser control OR I need to try something else?
Thanks,