Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
public double CalculFormula(string Formula)
{
MSScriptControl.ScriptControl sc = new MSScriptControl.ScriptControl();
sc.Language = "VBScript";
try
{
return System.Convert.ToDouble(sc.Eval(Formula));
}
catch (System.Exception)
{
return 0;
}
}
private void button5_Click(object sender, EventArgs e)
{
lblsonuc.Text = CalculFormula(txtCalc.Text).ToString();
}
Hello
This code works fine when compiled as WindowsForm. When I compile it as a plug-in (.dll), it does not find any errors.
but when triggered with the button I get this error.
Solved! Go to Solution.