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.
            Asked
            
        
        
            Active
            
        
            Viewed 855 times
        
    2 Answers
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
 
- 
                    I am new to vb script.Can u plaese provide me the entire example? – Jui Test May 11 '12 at 09:45
 - 
                    @JuiTest - I don't know what you are trying to achieve - your question is very unclear in that respect. – Oded May 11 '12 at 09:46
 - 
                    Can u tell me how to call vb script file from C#? – Jui Test May 11 '12 at 09:56
 - 
                    @JuiTest - I did. Again, not clear what you are trying to do. – Oded May 11 '12 at 09:57