[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3327
  • Last Modified:

C# show and focus to another application hidden in the taskbar

What is the best way to have one C# application show and focus to another C# application hidden in the taskbar with a notifyIcon?  I would like to do this on startup, if the application is already running then focus to the first instance instead of loading the application again, also the first application was hidden using the controls Hide() method.  OS is Windows XP.
0
alexatsearidge
Asked:
alexatsearidge
1 Solution
 
MuhammadAdilCommented:
You can get all currently running processes. If your application in these process. And you can set focus to another foreign process.

http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/
http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_23336243.html
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now