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

Previous Application

My program is running minimized. How do I tell what the previous application running was when I activate my program.
0
VBStarter
Asked:
VBStarter
  • 2
  • 2
1 Solution
 
crazymanCommented:
What do you mean the 'previous running application'?
do you mean the application that last had focus?
0
 
VBStarterAuthor Commented:
Yes, the application that last had focus.
0
 
DrDelphiCommented:
Take a look at the GetForeGroundWindow API call. BEware that you will want to make this call PRIOR to actually showing your form. Thisfunction will return the HWND of the form that has focus at the time that you call it. From there you do pretty much anything you like.

Good luck!!
0
 
VBStarterAuthor Commented:
Thanks
0
 
DrDelphiCommented:
My pleasure.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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