Search results for 'GetProcess'. 1 post(s) found.
- 2008/09/22 Finding process name on OS
Following function is very useful when checking currently working process based on name.
using System.Diagnostics;
.
.
.
public bool IsProcessOpen(string name)
{
foreach (Process clsProcess in Process.GetProcesses) {
if (clsProcess.ProcessName.Contains(name))
{
return true;
}
}
return false;
}
.
.
.
public bool IsProcessOpen(string name)
{
foreach (Process clsProcess in Process.GetProcesses) {
if (clsProcess.ProcessName.Contains(name))
{
return true;
}
}
return false;
}
Another posts included in "C#"
| To load image from file (0) | 2009/09/03 |
| How to convert bitmap image to jpeg image ? (0) | 2009/09/03 |
| How to display message box in C# (0) | 2009/09/03 |
| Convert System.DateTime to UNIX timestamp (0) | 2008/09/22 |
| Retrieve system information (0) | 2008/09/22 |
| How to rename(change file name) in C# ? (1) | 2008/03/12 |
| Find Files in certain directory (0) | 2008/02/25 |
| How to speed up access to the RichTextBox Lines property (0) | 2007/09/25 |

Prev

Rss Feed