Reputation: 641
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
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
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)
look also at Data Copy
Upvotes: 1