sushiBite
sushiBite

Reputation: 361

opening a WPF application from winforms app

is there any way for me to open an WPF application from a WinForms app ?

I've been trying this

   ProcessStartInfo procInfo = new ProcessStartInfo(@"path-to-app-exe");

But no luck, hope someone can give me some pointers.

Thanks /sushiBite

Upvotes: 1

Views: 161

Answers (3)

Giorgi
Giorgi

Reputation: 30883

If you do not need any advanced settings for startinfo use Process.Start method like this:

Process.Start(@"path-to-app-exe");

Upvotes: 3

Klaus Byskov Pedersen
Klaus Byskov Pedersen

Reputation: 121047

You need to call Process.Start(procInfo); too.

Upvotes: 1

Kell
Kell

Reputation: 3327

you have to call the start method on a process object:

Process it = new Process();
        it.StartInfo = procInfo;
        it.Start();

Upvotes: 0

Related Questions