Recommended Posts

Hi,
I am trying to find a way that my c# winform program can detect if another peice of software is running.I want my program to display when a certain program is active and to hide when its not.
Any ideas would be great.
Thanks :)

Share this post

Link to post

Share on other sites

My problem now is, putting it in my program so it runs every time a new window becomes active. Eg

When my program starts, it is minimized and runs in the background. I want it to check the process names each time another program is made active. Like, for example, if i had 3 notepads open, one will be active and the other 2 will be behind and unactive. If i then click one of the unactive notepads, i want my program to then check that processes name.

It seems that, when my program is minimized, it stops running all code, for example, i have a mouse move event and it works when my program is selected, but doesn't work when my program is minimized.

Is it possible for my program to watch for changes when it is in the background? Or will i need to make a windows service or something?