Solved

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

Posted on 2008-06-12
3
3,143 Views
Last Modified: 2013-12-04
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
Comment
Question by:alexatsearidge
3 Comments
 
LVL 6

Accepted Solution

by:
MuhammadAdil earned 500 total points
ID: 21771637
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now