Open program after ShellExecute

How would I set focus to the new application after I issue:

Call ShellExecute(hWnd, "Open", stored_file, "", App.path, 1)
hrolsonsAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Jorge PaulinoConnect With a Mentor IT Pro/DeveloperCommented:
Have you checked in the end? You just need to use SetFocusAPI (hnd), in that example, in a timer for a short delay.
0
 
Jorge PaulinoIT Pro/DeveloperCommented:
You can use setFocusAPI()

Example: http://www.codeguru.com/forum/showthread.php?t=25949
0
 
hrolsonsAuthor Commented:
jpaulino, the link you provided doesn't really explain seFocusAPI(), I will look around.
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.

All Courses

From novice to tech pro — start learning today.