HelpSave Form2 As A Program appart

Posts 1–15 of 18 · Page 1 of 2
Save Form2 As A Program appart
hey so i wanted to know if there is a way to, from form1 , save form2 as a .exe appart on desktop.
like when i press a button if form1 , form2 is created on the desktop appart.

I thought about something like that but it doesnt work:

Dim Filename As String = My.Computer.FileSystem.SpecialDirectories.Desktop & "\Form2.exe"
IO.File.WriteAllBytes(Filename, Form2)
Im not sure what you means. Do you want to just show form2?
Form2.Show()
Or save the form so its a seperate .exe
Codedom does this that. You'l beable to create a .exe that inherits form2.
Have a look around google or here on the site for examples. If you're unsuccessful, i'll see if i can post a simple example.
I have no problems using codedom in C#, shouldnt be all that different in vb.
He means to create an .exe.... I think.
But, I have no idea how to do that. I would just make a new project and have the form copy the .exe from the new project where you would have put your form2.
Quote Originally Posted by Cryptonic View Post
He means to create an .exe
yes i do. @Hassan @Jason
Quote Originally Posted by Amkay View Post
yes i do. @Hassan @Jason
Codedom dude, i already said. This is what you're after. VB and VS uses this.
Codedom is used to create apps. It isnt hard to use either. Google it!
You can't do that. You have to make a seperate form and put it in resource.
Quote Originally Posted by FoSho' View Post
You can't do that. You have to make a seperate form and put it in resource.
What does resources have to do with it? Just curious
Quote Originally Posted by Pingo View Post
What does resources have to do with it? Just curious
Well he can't just make the form2.exe on it's own ... So he need to use resource.
Quote Originally Posted by FoSho' View Post
Well he can't just make the form2.exe on it's own ... So he need to use resource.
If he doesnt want to edit Form2 sure.
But i cant think of any reasons why he would need form1 to save form2 unless he plans on making some form of creator.
In that case he will need to compile it using form1 so he can edit form2.
Quote Originally Posted by Pingo View Post
If he doesnt want to edit Form2 sure.
But i cant think of any reasons why he would need form1 to save form2 unless he plans on making some form of creator.
In that case he will need to compile it using form1 so he can edit form2.
^ does not work. I tried to use your method but failed. I think he want to make like trainer maker or some sort???
Quote Originally Posted by FoSho' View Post
^ does not work. I tried to use your method but failed. I think he want to make like trainer maker or some sort???
Heres a screen of mine. Blue one is form1 and the blank one is form2.
Designing form2 and building the trainer with codedom.
Quote Originally Posted by Pingo View Post
Heres a screen of mine. Blue one is form1 and the blank one is form2.
Designing form2 and building the trainer with codedom.
I don't think you can save the 2nd form.
@FoSho'
You can, all you need to do is copy the settings and create the .exe.
That app does just that.

Im still unclear if his form2 gets modified or not. If he just wants to save it, do as you said and store it as a resource.
But if his app allows users to change form2, just copy the settings and create a new .exe.
Quote Originally Posted by Pingo View Post
@FoSho'
You can, all you need to do is copy the settings and create the .exe.
That app does just that.

Im still unclear if his form2 gets modified or not. If he just wants to save it, do as you said and store it as a resource.
But if his app allows users to change form2, just copy the settings and create a new .exe.
That might work?
@FoSho'
I'll make a creator base so people can play around with it.
Posts 1–15 of 18 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us