tags:

views:

31

answers:

2

i used process.start in windows form to launch other program but now i want to use wpf to launch it . i uesd: Process virtualMouse = new Process();

virtual.StartInfo.FileName = "VirtualMouse.exe";    
bool result = virtual.Start(); 

and i getting error:

the type or namespace name'Process' could not be found (are you missing a using directive or an assembly reference)

how to do it in wpf??

+3  A: 

It's just the same way as in Windows Forms. You need to add a using directive at the top of the file to System.Diagnostics.

using System.Diagnostics;
icktoofay
A: 

Add System.Diagnostics namespace to your source file.

Franci Penov