Buddhi Dananjaya
Buddhi Dananjaya

Reputation: 641

launching another C# application

I have two C# applications (Windows Forms). Both developed by myself. I want one application to launch the other and open a form related to a parameter passed from first application. If second application is already open, then I need only to open the form in second application and get it to front.

Upvotes: 1

Views: 179

Answers (2)

Tomino
Tomino

Reputation: 6279

First step:
Launch an application if not launched
1)Determine, if application is running: Answer here
2)If is not runnign, run application: MSDN Example

Second step:
Then try named pipes for interprocess communication: Example here

Upvotes: 0

codeteq
codeteq

Reputation: 1532

What you need to archieve this is
that your 2 c# applications support command line arguments
and are able to communicate together

Main() and Command-Line Arguments (C# Programming Guide)

Interprocess Communications

look also at Data Copy

Upvotes: 1

Related Questions