Solved

A Single Program how many time running in windows

Posted on 2004-09-05
7
239 Views
Last Modified: 2010-04-17
Dear Sir,

can you help me?

I single application how many time running in the windows? how to find through visual basic program?


best Regards,

M. Mohamed Rafeek
0
Comment
Question by:md_yasheen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
7 Comments
 
LVL 22

Accepted Solution

by:
cookre earned 25 total points
ID: 11986192
If you can rely on the window title to be consistent, you can use the EnumWindows() API call to find all windows.  You then look at the title for each to see if it matches.  Here's an example of using EnumWindows():
http://www.developerfusion.com/show/34/2
0
 

Assisted Solution

by:Andrew-Killer
Andrew-Killer earned 25 total points
ID: 11986337
http://support.microsoft.com/?kbid=197593

This appears to do what you need.
0
 
LVL 2

Expert Comment

by:Parsi
ID: 11987096
Dear Mohamed

if u wanna check your current program,

'App.PrevInstance' is a boolean variable which shows that the current program is running in the memory.

Good luck.
0
 
LVL 22

Expert Comment

by:cookre
ID: 12169723
Split between Andrew-Killer and cookre
0

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Starting up a Project

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question