I want to compile and run dynamically string variable and also access to this project forms and classes
private void btncompiler_Click(object sender, EventArgs e)
{
String str;
str = @"
int a, b;
a = 3;
b = 5;
textBox1.Text = (a + b).ToString()";
//Compile str=>
}
I do this with CSharpCodeProvider but can't access to textBox1 and other controls on this class