I have a WPF and winform application both in C#. I invoke wpf app from winform app by using
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = @"C:\wpfapp.exe";
startInfo.Arguments = data; //string result data from webservice;
Process.Start(startInfo);
This is ok and i am able to run the wpf ui from winform with the parameters that has been sent as arguments. But now i have a problem. now i want to update the message in the running wpf window.
Already the wpf window is run and showing the message. Later i want to send another message to that same wpf window. how we can achieve that ?
if (ProgramIsRunning(exepath))
{
// here we need to add the code to send message to the same wpf window.
}
else
{
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = @"C:\wpfapp.exe";
startInfo.Arguments = data; // string result data from webservice;
Process.Start(startInfo);
}
Please help.