Solved

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

Posted on 2008-06-12
3
3,184 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

733 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