1,978
社区成员
发帖
与我相关
我的任务
分享
if (p_arry[i].MainWindowHandle != IntPtr.Zero)
{
//表示有窗体
}
不知是否可以用这个,
bool ISover=false;
System.Diagnostics.Process[] p_arry = System.Diagnostics.Process.GetProcesses();
for (int i = 0; i < p_arry.Length; i++)
{
if (p_arry.ProcessName.ToLower() == "f1")
{
ISover=true;
}
}
if(ISover==true)
{
Process.Start("*********");
}