Reputation: 357
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??
Upvotes: 0
Views: 436
Reputation: 129139
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;
Upvotes: 3