views:

36

answers:

1

I'm wondering how to compile and run a XNA class from an interaction on a C# Window Form. For example, when I click button "Play" from a C# Window Form, the game which is built in XNA classes will be compiled and run. Hope my question is clear enough.

Any helps are appreciated :)

Thanks in advance

+1  A: 

C# classes can be compiled and run on runtime, it seems you're looking for that. You can search for examples of uses of CSharpCodeProvider and ICodeCompiler to get you started.

Here is one pretty clear example of how this is achieved.

steinar
thanks a lot. It requires a lot more work to get it done, but I know where I am heading.
Tri