Results 1 to 6 of 6
  1. #1
    Amkay's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    Underground...
    Posts
    1,018
    Reputation
    80
    Thanks
    592
    My Mood
    Sneaky

    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)

    For more info:
    i want to make an app that has 2 forms:
    form1's work: it designs and modify form2 and when finished build it.

    like this picture an app for @Pingo :

    [IMG]https://i203.photobucke*****m/albums/aa29/Baxter_esa/TrainerScreen.png[/IMG]

    i want the same app... @Brinuz @Hassan
    Last edited by Amkay; 09-07-2012 at 11:26 PM.

  2. #2
    obsta's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Duncraig
    Posts
    87
    Reputation
    10
    Thanks
    5
    My Mood
    Cold
    I think you will have to use form1's button to generate form2. I'm probably wrong though.

  3. #3
    Pingo's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    687
    Reputation
    24
    Thanks
    865
    My Mood
    Blah
    @ilikesmeagol
    You want to make a trainer/dll loader too?

    Im not sure how many ways it can be done but i used codedom.
    You can use VB but in that picture, i used C#.

    Just do what i did and start off with 2 forms. Google how to edit form2 from form1 if you dont know how.
    Once you have all that done, start with the codedom code, google examples.
    I googled codedom too but in the end, i used my own method. The example i seen had alot of unnecessary things
    i didnt need.
    Everything is written in string format.
    Any code you dont need to edit, for example my write/read process memory class,
    can be put in a text file and stored in the resources and added to the project at build time.

    It can seem alittle overwhelming at first but think of it like a picture puzzle.
    Add one piece at a time and before you know it, it starts taking shape.

  4. #4
    Threadstarter
    ilikesmeagol and always will...
    MPGH Member
    Amkay's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    Underground...
    Posts
    1,018
    Reputation
    80
    Thanks
    592
    My Mood
    Sneaky
    Quote Originally Posted by Pingo View Post
    @ilikesmeagol
    You want to make a trainer/dll loader too?

    Im not sure how many ways it can be done but i used codedom.
    You can use VB but in that picture, i used C#.

    Just do what i did and start off with 2 forms. Google how to edit form2 from form1 if you dont know how.
    Once you have all that done, start with the codedom code, google examples.
    I googled codedom too but in the end, i used my own method. The example i seen had alot of unnecessary things
    i didnt need.
    Everything is written in string format.
    Any code you dont need to edit, for example my write/read process memory class,
    can be put in a text file and stored in the resources and added to the project at build time.

    It can seem alittle overwhelming at first but think of it like a picture puzzle.
    Add one piece at a time and before you know it, it starts taking shape.
    i know how to edit form2 from form1 but the part that i dont know is the building part... i have a question: is codedom for the build app part ? if so can you help me making this program in vb since you now about it?

    EDIT: im not making a trainer tho...
    Last edited by Amkay; 09-08-2012 at 08:15 AM.

  5. #5
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,670
    My Mood
    Breezy
    It's going to be an absolute bitch, trust me. There are a couple of ways you could approach it:
    a) Use Reflection.Emit and generating your own assembly, using dynamic methods and IL (like assembly but for .NET). Definitely not something you'd like to get into if you're still relatively new to VB.NET as it is an advanced topic.
    b) A simpler method, use CodeDom as Pingo described and generate an application using .vb source strings. You can find some examples on Google, I'm not going to guarantee it's going to make any sense to you though. (Hint, you're going to need to use the GenerateAssembly and OutputAssembly property from the CompilerParameters object you make).
    Last edited by master131; 09-08-2012 at 08:43 AM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  6. #6
    Pingo's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    687
    Reputation
    24
    Thanks
    865
    My Mood
    Blah
    Try it on your own for now to see how you do first. If you get stuck, i'll give you a hand.
    Im no expert in codedom nor VB though.
    I'll see if i can put together a simple example in vb so you can get an idea.

    What you making?

Similar Threads

  1. [Help Request] Save Form2 As A Program appart
    By Amkay in forum Visual Basic Programming
    Replies: 17
    Last Post: 06-23-2012, 10:54 AM
  2. [Tutorial][VB2008] Saving your program's settings
    By edub18 in forum Visual Basic Programming
    Replies: 4
    Last Post: 03-29-2011, 12:24 AM
  3. [Question]Save in program folder file?
    By Semerjeran in forum Combat Arms Hacks & Cheats
    Replies: 18
    Last Post: 09-05-2008, 07:10 PM
  4. Problem Wit Hacking Programs
    By f5awp in forum General Gaming
    Replies: 5
    Last Post: 01-10-2006, 05:44 AM
  5. Sugestion--Post Saved packets (WR)
    By wardo1926 in forum General Game Hacking
    Replies: 12
    Last Post: 01-03-2006, 10:41 AM