muk
asked on
How to set active application?
How I can change active application using API?
For example, to set my programm active.
Or to set other application active if I have it's HINSTANCE.
For example, to set my programm active.
Or to set other application active if I have it's HINSTANCE.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I'm sorry muk, I meant SetForegroundWindow (it is API) instead of SwitchToHandle:
//bring delphi app to front:
SetForegroundWindow(Applic ation.Hand le);
you can still use FindWindow to get the window handle of another application.
Cheers!
//bring delphi app to front:
SetForegroundWindow(Applic
you can still use FindWindow to get the window handle of another application.
Cheers!
ASKER