Vb.net - 可以在运行时编译特定的表单吗? [英] Vb.net - is possible compile a specific form at runtime?
问题描述
亲爱的朋友们,
就这样,在运行exe时,如果可以在内部编译一个特定的表单并构建一个新的exe?
如果可以给我一个起点我会赞成...
最好的问候
我尝试了什么:
只需在google和codeproject网站内找到,但找不到明确的指向启动...
您无法编译表单并将其添加到正在运行的exe文件中:exe正在使用,直到应用程序关闭且无法写入至。即使你可以这样做也是一个坏主意:在生产中几乎肯定会触发反病毒系统。
根据你想要这样做的原因,我' d建议您考虑在表单上使用WebBrowser控件,并提供相应的HTML / Javascript以创建要动态生成的表单。
引用:就这样,在运行exe时,如果可以在内部编译一个特定的表单并构建一个新的exe?
很难确切地知道是什么你想用这么少的指示来做。
你所描述的或多或少是编译器的作用,所以你必须在exe中包含一个编译器。
要在运行时动态创建表单,请查看此处:
https://stackoverflow.com/questions/11979793/creating-a-form-dynamically-in-vb
Dear friends,
Just this, in running exe, if posiible to compile a specific form inside and build a new exe?
I will apreciate if can give me a starting point...
Best Regards
What I have tried:
Just find in google and inside codeproject site, but not find a clear point to starting...
You can't compile a form and add it to the running exe file: the exe is in use until the application closes and cannot be written to. It would be a bad idea even if you could: in production that would almost certainly trigger anti-virus systems.
Depending on why you want to do this, I'd suggest you consider using WebBrowser control on a form, and feed that the appropriate HTML / Javascript to create the forms you want to generate dynamically.
Quote:Just this, in running exe, if posiible to compile a specific form inside and build a new exe?
Difficult to know exactly what you want to do with so little indications.
What you describe is more or less what a compiler does, so you must include a compiler in your exe.
To create a Form dynamically during runtime take a look here :
https://stackoverflow.com/questions/11979793/creating-a-form-dynamically-in-vb
这篇关于Vb.net - 可以在运行时编译特定的表单吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!