Activate another application

Posted on 2004-10-04
Last Modified: 2008-02-01
From a C# Windows Application, how do I activate another application?  Outlook, for example?  Would I use:

System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = "C:\\Program Files\\Microsoft Office\\Office\\OUTLOOK.EXE";
process.StartInfo.UseShellExecute = false;

Or is there an easier way?
Question by:fattumsdad

Accepted Solution

dabitbol earned 400 total points
ID: 12218256

After a long research, this is the best way to do it, because you can monitor the process and have better control over it.

Best Regards,

LVL 14

Assisted Solution

AvonWyss earned 100 total points
ID: 12218945
Note that you should release the handles associated with the Process object when you're done with it (it implements IDisposable to do that).

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Media Player 2 26
compare between entities in entity framework 8 75
Expression Evaluater 3 28
VB.NET 2008 - SQL Timeout 9 26
Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In a recent question ( here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

825 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