BP Forums
Create a new file - Printable Version

+- BP Forums (https://bpforums.info)
+-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55)
+--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56)
+---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8)
+---- Thread: Create a new file (/showthread.php?tid=516)



Create a new file - Covert2String - 04-09-2012

Hello, I'll try to explain the best I can. So, I need to create an application with code, for example: the main Application would have a textbox where you write your name, then it would generate a new Application with your name as the form title (great example, I know).

Thanks in advance <!-- sBig Grin --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="Big Grin" title="Very Happy" /><!-- sBig Grin -->


Re: Create a new file - xolara - 04-09-2012

form2.text = textbox1.text
form2.show


Re: Create a new file - Covert2String - 04-10-2012

I've not explained myself properly, I want to create a NEW file from a base application, like: My main application has a function called Generate Exe, which gets the name I wrote, and creates a new EXE file with that setting.


Re: Create a new file - brandonio21 - 04-10-2012

I know what you're saying. Now I am by no means no expert on this, but here are some links to help you out. I used what you're talking about in the Plugin system for TwitControl.

A tutorial, somewhat: <!-- m --><a class="postlink" href="http://vbcity.com/blogs/jatkinson/archive/2010/04/24/dynamically-read-compile-and-run-source-code-from-a-text-file.aspx">http://vbcity.com/blogs/jatkinson/archi ... -file.aspx</a><!-- m -->

A short discussion on the security of doing such things: <!-- m --><a class="postlink" href="http://www.vbforums.com/showthread.php?p=4115298#post4115298">http://www.vbforums.com/showthread.php? ... ost4115298</a><!-- m -->


Re: Create a new file - Covert2String - 04-11-2012

Thank you, that was exactly what I meant <!-- sBig Grin --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="Big Grin" title="Very Happy" /><!-- sBig Grin -->


Re: Create a new file - brandonio21 - 04-11-2012

No problem! Be sure to post back with your results!