Click here to Skip to main content
15,921,989 members
Please Sign up or sign in to vote.
4.67/5 (3 votes)
See more:
Hi,
I want to know if there is a way to compile/rum code fron external source.
for example, lets assume that we have a win form with a TextBox and Button, and I want to write some code in the TextBox, and when I click on the Button the code that written in the TextBox will executed.
someone got any idea or knoledge how to do so???
Thank you all.
Posted

Yes, it's sometimes called "compiling on the fly" and various other names.

CP Article[^]
 
Share this answer
 
Comments
Sandeep Mewara 12-Sep-10 0:35am    
Comment from OP: The code in thek link is not available
mau be other one?
Yes why not. CodeDom allows you to do this.

Check the basic example :

http://www.codeproject.com/KB/dotnet/CompilingWithCodeDom.asp[^]
 
Share this answer
 
Comments
Sandeep Mewara 12-Sep-10 0:35am    
Comment from OP: The code in thek link is not available
mau be other one?
Have a look at this[^] article on MSDN.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900