• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

A Single Program how many time running in windows

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
md_yasheen
Asked:
md_yasheen
  • 2
2 Solutions
 
cookreCommented:
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
 
Andrew-KillerCommented:
http://support.microsoft.com/?kbid=197593

This appears to do what you need.
0
 
ParsiCommented:
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
 
cookreCommented:
Split between Andrew-Killer and cookre
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now