[C#] Putting programs in your resource folder? how?

Results 1 to 3 of 3
  1. #1
    Extreme Coder - Delphi bounty-hunter is offline
    Grand MasterRank
    Sep 2007 Join Date
    GunZone MansionLocation
    1,725Posts

    [C#] Putting programs in your resource folder? how?

    Is it possible to load save a exe file as a resource and launch it when you launch or press a button in your program.

    e.g

    Public Void Button_Clicked();
    {
    // runs the exe in the resource folder inside the program
    }

    thanks in advance


  2. #2
    Newbie Petros is offline
    MemberRank
    Sep 2007 Join Date
    10Posts

    Re: [C#] Putting programs in your resource folder? how?

    Quote Originally Posted by bounty-hunter View Post
    Is it possible to load save a exe file as a resource and launch it when you launch or press a button in your program.

    e.g

    Public Void Button_Clicked();
    {
    // runs the exe in the resource folder inside the program
    }

    thanks in advance

    Yep. You want to look up the Reflection class. Essentially you will load up the bytes into an Assembly class and then using Reflection to load the .net assembly from memory/resources. Codeproject.com has some nice example Reflection projects.

  3. #3
    Extreme Coder - Delphi bounty-hunter is offline
    Grand MasterRank
    Sep 2007 Join Date
    GunZone MansionLocation
    1,725Posts

    Re: [C#] Putting programs in your resource folder? how?

    Thanks ^^ ill search for reflection calss



Advertisement