Hi,
I open notepads and other applications using shell during runtime. But now I want to check out whether these applications are open or not. How am I supposed to do that?

Hi,
I open notepads and other applications using shell during runtime. But now I want to check out whether these applications are open or not. How am I supposed to do that?

I don't think so it is possible to do it in VB6 but it can be done in VB.NET!

I can send you the code if wanted!

Regards

Well yes, you can use FindWindow or EnumWindows but the code by Hypetia is what you were looking for and is quite easier than the other solutions I just mentioned. Plus the modifications to your code would be minimal. All you would need to add is a public variable element array of doubles to keep track of the task id's and then when you want to check to see if any of the spawned programs still exist, you would call the solution in a for loop.

Good Luck

This article has been dead for over six months. Start a new discussion instead.