process
-
jo
nach langer suche habe ich nix gefunden darum poste ich mal.
will einfach prüfen, ob internet explorer läuft, falls das der fall ist soll ne MessageBox.Show("läuft", "läuft"); ausgegeben werden.kann mir einer helfen ?
glg
-
public static bool IsApplicationRunning(string appname, string title) { if (string.IsNullOrEmpty(appname)) throw new ArgumentNullException("..."); Process[] processes = Process.GetProcessesByName(appname); if (string.IsNullOrEmpty(title)) return ( processes.Length > 0 ); foreach (Process p in processes) if (p.MainWindowTitle.IndexOf(title) > 0) return true; return false; }