If I have two applications running simultaneously , App1.exe and App2.exe , I want to开发者_StackOverflow中文版 bring App2.exe when a button in App1.exe is pressed.
Use FindWindow to retrieve the window-handle of your app2.exe window and then use BringWindowToTop on that handle.
You can find an (VB) example here: http://support.microsoft.com/kb/186431
Use BringWindowToTop. If you need to find the window handle first, use FindWindow.
精彩评论