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.