Link to home
Start Free TrialLog in
Avatar of keithcsl
keithcsl

asked on

Look for multiple openings of a program

When I open a delphi application, how do I check if it is not already opened. If it is already opened, how do I divert to that application instead of opening a new one?

Keith
ASKER CERTIFIED SOLUTION
Avatar of JimBob091197
JimBob091197

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JimBob091197
JimBob091197

P.S.  You'll need to declare a variable:

var
    hWnd: Integer;

Avatar of keithcsl

ASKER

I tried it and it works perfectly!!

Thanks!!!