I have a dll that contains a GUI that I want to be able to compile at run time. I have already checked using CodeCom from a different post Generating-dll-at-run-time
...
CompilerResults results = icc.CompileAssemblyFromSource(parameters, yourCodeAsString);
And I have tested it as:
string yourCodeAsString = @"
namespace Foo
{
public class Bar
{
static void Main(string[] args)
{
Bar.SayHello();
}
public static void SayHello()
{
System.Console.WriteLine(""Hello World"");
}
}
}
";
My question is: Since CompileAssemblyFromSource receives a yourCodeAsString and I am calling MyGUI:
using (MyGUI _gui = new MyGUI())
{
_gui.ShowDialog();
int value = _gui.GetUserInput();
}
How or where could/should I incorporate my GUI code?
I hope I made myself clear...
Cheers in advance