Is this possible? Like embedding the actual .exe in your program, for example embedding notepad in it, preferably also without the border.
Asked
Active
Viewed 2,242 times
-4
-
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
-
1why 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 Answers
3
For winforms
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 wpf

Community
- 1
- 1

George Duckett
- 31,770
- 9
- 95
- 162
-
Do you know about **WPF** equivalent for this **WinForms** wonderful thing? – Yaakov Shoham Oct 24 '11 at 19:24
-
1Maybe this: http://stackoverflow.com/questions/5028598/hosting-external-app-in-wpf-window – George Duckett Oct 24 '11 at 19:27
-
Awesome! It fits me needs exactly. I'm so happy I've seen this answer accidently. – Yaakov Shoham Oct 24 '11 at 19:35
-
Did didn't help me, I tried this before asking the question, and it didn't work. – user1011484 Oct 24 '11 at 19:53
-
@user1011484: In the link you have downloadable example. Have you downloaded it? Where is the problem? – Yaakov Shoham Oct 24 '11 at 20:16