Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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...
Posted
Updated 4-Jul-18 8:32am
v2

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.
 
Share this answer
 
Comments
TreoNet 3-Jul-18 17:02pm    
Thank you for your answer.
I dont try add the compiled form inside the running exe, just generate a new one.
Ralf Meier 4-Jul-18 14:31pm    
So you want to create a Form dynamically ...?
If Yes see my Solution ...
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.
 
Share this answer
 
To create a Form dynamically during runtime take a look here :
https://stackoverflow.com/questions/11979793/creating-a-form-dynamically-in-vb
 
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