I wrote an article about this a long time ago:
http://www.west-wind.com/presentations/DynamicCode/DynamicCode.htmThere's a class in there where you can just specify the code to execute dynamically with a few lines of code... It's old and terrible .NET coding conventions but it works :-) - I've used it in a few customer applications that actually do nearly exactly what you describe. In one app we created one class out of all matching snippets up front and compiled it on the fly to be run later.
+++ Rick ---
>Hi All.
>
>This would be so easy for me to do in VFP, but I am doing a conversion from VFP to vb.net right now <s>.
>
>I want to store some code in an XML file and execute that code dynamically at runtime. Is there any good way to accomplish this in vb.net?
>
>I have been googling and looking at reflection but to tell you the truth, all the stuff I have found just makes my head hurt.
>
>TIA.