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.
}
How can I replace the MessageBox that tells the user that Outlook is already running to showing the Microsoft Outlook application on top of all applications in C#.Net?