0

Can I run vb script from C# application.Can anybody provide me vb script with exam like on button click show message,if perticular panel is visible.

Jui Test
  • 2,399
  • 14
  • 49
  • 76

2 Answers2

0

i don't think you can run vb script code inside c# code, but this How to call a VBScript file in a C# application? could do the job

Community
  • 1
  • 1
kalbsschnitzel
  • 817
  • 1
  • 8
  • 29
0

You can't execute VBScript directly in the same C# process, but you can execute it through a separate process using the Process class.

Process.Start("path to vbscript", "arguments if any");

If you are talking about client side on a browser, then this can only work on IE (the only browser that supports vbscript).

Oded
  • 489,969
  • 99
  • 883
  • 1,009