Hi,
I'm compiling C# code to memory and running it from there, now what I want to do is pause, resume, stop that same code running in the memory.
I'm using this currently to run the code:
private void compileRunToolStripMenuItem_Click(object sender, EventArgs e)
{
Thread runCode = new Thread(new ThreadStart(RunTheCode));
runCode.Start();
}
I tried doing runCode.Suspend(); but it doesn't work, and it says its deprecated... Please help, Thanks!!!!