How to execute VBScript command within textbox from C# application?

后端 未结 4 1319
面向向阳花
面向向阳花 2021-01-15 03:20

How could I execute VBScript\'s code from TextBox control placed in C# application?

like , let\'s assume that I have a C# Windows Application(form) and has two contr

4条回答
  •  無奈伤痛
    2021-01-15 03:45

    You will need to use WebBrowser Control to do that.

    And since i don't think you can inject VBScript code in the loaded page. So what you can do is Create a Temp .html page, save your TextBox's script in it and then Load it in the the WebBrowser Control.

提交回复
热议问题