0
private void button1_Click(object sender, RoutedEventArgs e)
{
Process virtualMouse = new Process();
virtualMouse.StartInfo.FileName = "VirtualMouse.exe"; // Needs to be full path
virtualMouse.StartInfo.Arguments = ""; // If you have any arguments
bool result = virtualMouse.Start();
}
但IAM越來越錯誤WPF命名空間問題 - 進程?
iam usig WPF和iam得到的錯誤是:type或namespace name'Process'找不到(你是否缺少using指令或程序集引用?) – sara 2010-06-20 08:24:46
您是否嘗試過使用System.Diagnostics;來添加'to你的代碼? – svick 2010-06-20 16:57:28