Click here to Skip to main content
15,886,639 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I have an 2 different applications. We will keep it as App1 and App2.
App2 can be opened directly as well as from App1.
If App2 is already opened directly.When I try to open the App2 from App1 it should open the existing instance without creating a new instance and update a text box value where a text box modifier is set as public.

if (System.Diagnostics.Process.GetProcessesByName("App2").Count() >= 1)
{
// How to proceed further set foreground already opened instance and update the public text box in App2.
}


Thanks.

Regards,
N.ShanthaKumar.
Posted
Comments
Sergey Alexandrovich Kryukov 7-Feb-14 11:26am    
Processes are well isolated, so you cannot do it in reliable way if the application in process is not designed for collaboration. You can only make some solutions per particular application. This is mostly a waste of time. You really need source code of the application, to modify it into library.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900