Activate/BringToFront/SetForegroundWindow/SwitchToThisWindow our application
Posted on 2009-07-15
We have two application (A and B) sending "messages" to each other in A there is a button that send a message to the B application that can be minimized or behind the other. When B get this message the application should be bring to front and be activated. The current code was a SetForegroundWindow
We have tryed many solution/combination of solution and cannot find any working solution:
SetForegroundWindow / SetActiveWindow / SwitchToThisWindow ...
but can't find any combination that work on my dev machine or other machine. Sometime it simply didn't work, some other time it's blinking orange.
Anyone know how to do it?
Currently we cannot change any code in A but can fix in B with our entry point.