tags:

views:

27

answers:

1

Hi,

I want to be able to cycle through the active processes on the system and find when my program starts? It has the name 'Calculate Distance' as the form1.vb text.

There fore, I want to be able to close a splash screen when the form1 loads. This requires checking currently running processes. How do I do that in VB.NET 2005?

Thanks in advance,

Catcalls

+1  A: 

Try using the Process.GetProcessesByName() method in the System.Diagnostics namespace.

bool processIsRunning = Process.GetProcessesByName("THE NAME OF YOUR PROCSS").Length > 0;
Kane
Bravo. I have marked this as the answer.
Xander