开发者

How Can I bring my application to the Top of windows

开发者 https://www.devze.com 2023-01-25 12:44 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号