Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I launch application one from another in C#?

Tags:

I have two desktop applications. After closing the first application, the first application will start the second application.

How do I start the second application after finishing first application?

My first application creates a separate desktop.

like image 996
Suriyan Suresh Avatar asked Jul 11 '09 04:07

Suriyan Suresh


1 Answers

Use the Process class when you are exiting your first application.

var p = new Process(); p.StartInfo.FileName   = "notepad.exe";  // just for example, you can use yours. p.Start(); 
like image 111
JP Alioto Avatar answered Oct 02 '22 09:10

JP Alioto