简体   繁体   English

如何制作一个在其中运行vb.net行的文本框?

[英]How to make a textbox that runs the vb.net line in it?

I'm new here and I already searched for answers but is it possible, if you typ in textbox1 "Application.ExitThread" it runs that or if you do "CheckBox1.Checked = True" it does that too?? 我是新来的人,我已经在搜索答案了,但是是否有可能,如果您在textbox1中键入“ Application.ExitThread”,它将运行该行,或者如果您执行“ CheckBox1.Checked = True”,它也会行吗? Is that possible? 那可能吗? Thanks! 谢谢!

you're looking for VBCodeProvider. 您正在寻找VBCodeProvider。 So you can execute Code at runtime 因此您可以在运行时执行代码

http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.vbcodeprovider(v=vs.110).aspx http://msdn.microsoft.com/zh-cn/library/microsoft.visualbasic.vbcodeprovider(v=vs.110).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM