Search results for 'System.Diagnostics'. 1 post(s) found.
Following is simple example to get Process name and add Process name to listbox control.
As you can see below, you can get working Process by Process control. But most of the properties are supported on windows platform. If you want to access the similar properties on windows mobile, you need to use another function.
using System.Diagnostics;
.
.
.
Process[] prs = Process.GetProcesses();
listBox1.Items.Clear;
foreach( Process pr in prs)
{
listBox1.Items.Add( pr.ProcessName);
}
.
.
.
Process[] prs = Process.GetProcesses();
listBox1.Items.Clear;
foreach( Process pr in prs)
{
listBox1.Items.Add( pr.ProcessName);
}
Another posts included in "C#"
| How to implement switch statement in C# ? (0) | 2009/09/05 |
| How to implement while loop in C# ? (0) | 2009/09/05 |
| How to delete file ? (0) | 2009/09/04 |
| How to convert integer to text string ? (0) | 2009/09/04 |
| How to convert text string to integer ? (0) | 2009/09/04 |

Prev

Rss Feed