i want my application activated( bring to front) when i open a specific application. For example, i opened adobe Photoshop; then my application should come front. And for any other application, it should be minimized. My application is in c#. Do you guys have any idea ??? Thanks in advance
First, Welcome to Stackoverflow.
Than to your Question: you need to use the SetForegroundWindow WinAPI call, if you want to set a Application to front from another application, or you just set the Topmost="True"
Property that is your application always Top.
Edit: Than you crate a Timer that call get Process by Name and if you found for examle Photoshop just call the WINAPI call to your own program or call
this.BringToFront();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.