Process[] pName = Process.GetProcessesByName("OUTLOOK");
if (pName.Length == 0)
{
MessageBox.Show("Outlook is not running."); // Open Outlook a new.
}
else
{
MessageBox.Show("Outlook is running."); // Do not re-open Outlook.
}
如何替换告诉用户Outlook已在运行的MessageBox,以便在C#.Net中的所有应用程序之上显示Microsoft Outlook应用程序?