-4

Is this possible? Like embedding the actual .exe in your program, for example embedding notepad in it, preferably also without the border.

  • in theory yes... but it depends on several aspects... so you need to give more details... what have you tried ? what is the specific goal ? Any error messages/ exceptions ? – Yahia Oct 24 '11 at 18:56
  • 1
    why would you want to do this? – BBetances Oct 24 '11 at 18:56
  • Do you mean you want to only have one exe in your program folder, or do you just mean that you want to launch a program, putting it within your program? – George Duckett Oct 24 '11 at 18:57

1 Answers1

3

For

Take a look at this code project. It contains code for a control that allows you to host processes within it.

http://www.codeproject.com/KB/miscctrl/AppControl.aspx

Though not a common task, recently I needed to take an existing executable application and embed it into an application I was building. Oddly enough, I did not need any interaction between my application and the existing EXE. As it ends up, this is not a difficult thing to do. To make it even easier, I created a custom C# control that allows you to specify the name of an executable you want embedded into your application. The control takes care of all the rest.


For

Hosting external app in WPF window

Community
  • 1
  • 1
George Duckett
  • 31,770
  • 9
  • 95
  • 162