1

I have a Window Form application in C# and another console application which doing some background work.

I run the console application from window form as a process. I want to send some events from console to window form application to be updated what is going on in a console application

Is there any way to achieve this?

Rarblack
  • 4,559
  • 4
  • 22
  • 33
Mohsin Abbas
  • 73
  • 1
  • 12
  • 1. From your console Application log a text file on the event or action and Windows Application use file watcher to read the same text file and get the changes made in the file. 2. If you have a Database both application and read and write actions. – SH7 Oct 22 '18 at 13:25
  • I think that post can help you : [Using Named Pipes to communicate between two program](https://stackoverflow.com/questions/13806153/example-of-named-pipes) – CrazyProg Oct 22 '18 at 13:27
  • 1
    I think you can consider to use old good Win32 API to send message if you let console app know about form app window id (or you can find it by name). If you want just properly integrate console output into your Form app, try to look at https://stackoverflow.com/questions/4362111/how-do-i-show-a-console-output-window-in-a-forms-application. – Tomas Jakl Oct 22 '18 at 13:36
  • Search for .NET inter-process communication. For example, take a look at [Local Machine Interprocess Communication with .NET](https://weblogs.asp.net/ricardoperes/local-machine-interprocess-communication-with-net). – Reza Aghaei Oct 22 '18 at 14:01

0 Answers0