1

For example, embed in "calc.exe" to wpf window,Thanks.

who
  • 1
  • 2
  • If you need embed process on your app, you should check http://stackoverflow.com/questions/5028598/hosting-external-app-in-wpf-window – ígor Sep 10 '12 at 10:30

2 Answers2

4

You could use the Process.Start method:

Process.Start("calc.exe");

But you cannot load the exe into an existing WPF window.

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
4

You don't. You can start another process by invoking it using System.Diagnostics.Process.Start(), but you can't "import" a process.

slugster
  • 49,403
  • 14
  • 95
  • 145