943,793 Members | Top Members by Rank

Ad:
May 14th, 2009
0

Find out the open applications.

Expand Post »
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?
Similar Threads
Reputation Points: 26
Solved Threads: 0
Junior Poster in Training
RahulV is offline Offline
92 posts
since Jun 2007
May 14th, 2009
0

Re: Find out the open applications.

Click to Expand / Collapse  Quote originally posted by RahulV ...
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
akshits is offline Offline
21 posts
since May 2009
May 15th, 2009
0

Re: Find out the open applications.

Click to Expand / Collapse  Quote originally posted by akshits ...
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
Oh how contraire akshits...

See...

http://www.tek-tips.com/viewthread.cfm?qid=1095460

Good Luck
Reputation Points: 156
Solved Threads: 296
Posting Virtuoso
vb5prgrmr is offline Offline
1,670 posts
since Mar 2009
May 15th, 2009
0

Re: Find out the open applications.

Click to Expand / Collapse  Quote originally posted by vb5prgrmr ...
Oh how contraire akshits...

See...

http://www.tek-tips.com/viewthread.cfm?qid=1095460

Good Luck
I was wondering if there is some other way, like by checking the Title of the forms open or something.
Pls tell me if im wrong.
Thank you.
Reputation Points: 26
Solved Threads: 0
Junior Poster in Training
RahulV is offline Offline
92 posts
since Jun 2007
May 16th, 2009
0

Re: Find out the open applications.

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
Reputation Points: 156
Solved Threads: 296
Posting Virtuoso
vb5prgrmr is offline Offline
1,670 posts
since Mar 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: "please enter ms jet ole db initialization information"
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: VB6 Random Number Generator Help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC