if 进程是否存在 
  置顶
else 新建http://blog.csdn.net/wzhiu/article/details/7676702

解决方案 »

  1.   


            private void Window_Loaded(object sender, RoutedEventArgs e)
            {
                Process[] pro = Process.GetProcesses();
                int n = pro.Where(p => p.ProcessName.Equals("进程名称")).Count();
                if (n > 1)
                {
                    Application.Current.Shutdown();
                    return;
                }
            }
      

  2.   

    获得 窗口句柄, 再使用SetForeGroudWindow(int hwnd)方法可以将其激活并设置为前台窗口
      

  3.   

    使用SetForeGroudWindow现在可以激活了,不过如果程序最小化还是不会弹出来