Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


A Single Program how many time running in windows

Posted on 2004-09-05
Medium Priority
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
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
LVL 22

Accepted Solution

cookre earned 100 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 100 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

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

705 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