Find out the open applications.

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jun 2007
Posts: 68
Reputation: RahulV is an unknown quantity at this point 
Solved Threads: 0
RahulV's Avatar
RahulV RahulV is offline Offline
Junior Poster in Training

Find out the open applications.

 
0
  #1
May 14th, 2009
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?
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 21
Reputation: akshits is an unknown quantity at this point 
Solved Threads: 0
akshits akshits is offline Offline
Newbie Poster

Re: Find out the open applications.

 
0
  #2
May 14th, 2009
Originally Posted by RahulV View 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?
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
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 837
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 153
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark

Re: Find out the open applications.

 
0
  #3
May 15th, 2009
Originally Posted by akshits View Post
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
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 68
Reputation: RahulV is an unknown quantity at this point 
Solved Threads: 0
RahulV's Avatar
RahulV RahulV is offline Offline
Junior Poster in Training

Re: Find out the open applications.

 
0
  #4
May 15th, 2009
Originally Posted by vb5prgrmr View Post
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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 837
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 153
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark

Re: Find out the open applications.

 
0
  #5
May 16th, 2009
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
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC