this.scriptEngine.RunTimeout += new RunTimeoutHandler(scriptEngine_RunTimeout); } protected override void Dispose( bool disposing ) { if( disposing ) if (components != null) components.Dispose(); base.Dispose( disposing ); } #region Windows 窗体设计器生成的代码 private void InitializeComponent() { //省略 } #endregion [STAThread] static void Main() { Application.Run(new Form1()); } //运行脚本 private void buttonRun_Click(object sender, System.EventArgs e) { this.scriptEngine.Reset(); this.scriptEngine.Language = (ScriptLanguage)Enum.Parse(typeof(ScriptLanguage),this.comboBoxScript.SelectedItem.ToString()); this.scriptEngine.Timeout = (int)this.numericUpDownTimeout.Value; this.scriptEngine.AllowUI = this.checkBoxAllowUI.Checked; if(this.radioButtonEval.Checked)//执行Eval方法 {
|
正在阅读:在C#中调用VBScript等脚本的实现在C#中调用VBScript等脚本的实现
2004-05-13 10:23
出处:PConline
责任编辑:linjixiong
键盘也能翻页,试试“← →”键