i have the js file how can i add that in winform C#,
i have developed the front-end and i want to run the js file on button click.
i will be thankful to u if u provide the snippet!!!!!
I want to run javascript code in windows form
thank you.
i have the js file how can i add that in winform C#, i
Share
You can use cscript.exe to execute JScript on windows & can capture the output from the stdout.
Obviously your JScript cannot contain any statement that is illegal on windows
for example when you run JS in a browser it contains the window object. There would be no window object when you run JS in shell using cscript.exe