private void UpdateProcesses()
{
Process[] processes = Process.GetProcesses();
processes = FilterProcesses(processes);
if (processes == null)
return;
if (ProcessesDiffer(processes, _processes))
{
_processes = processes;
this.processesBox.Items.Clear();
foreach (Process p in processes)
{
this.processesBox.Items.Add(p.ProcessName);
}
}
}
which gets all processes and runs a filter on them, keeping the ones that are exe's (you can use other criteria). The listbox has an event that fires when something is clicked on. In my case, it activates the kill button, but in your case you would fire off a google query. It's not trivial, but it's straight forward.You are not logged in, either login or create an account to post comments
posted by I-baLL at 1:20 PM on April 29