who
who

Reputation: 1

How to embed in an external program to WPF or .net winform program?

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

Upvotes: 1

Views: 518

Answers (2)

slugster
slugster

Reputation: 49985

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

Upvotes: 4

Darin Dimitrov
Darin Dimitrov

Reputation: 1039428

You could use the Process.Start method:

Process.Start("calc.exe");

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

Upvotes: 4

Related Questions