A Single Program how many time running in windows

Posted on 2004-09-05
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
Question by:md_yasheen
  • 2
LVL 22

Accepted Solution

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():

Assisted Solution

Andrew-Killer earned 25 total points
ID: 11986337

This appears to do what you need.

Expert Comment

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.
LVL 22

Expert Comment

ID: 12169723
Split between Andrew-Killer and cookre

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
splitOdd10 challenge 5 125
add projects t working set in maven 2 37
youtube blocking politics 4 76
Visual Studio hangs on running project 6 55
This article will show, step by step, how to integrate R code into a R Sweave document
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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 …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

685 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