Share via


How to a process notify another process of some event

Question

Thursday, February 28, 2019 4:10 AM

I need to make a process notify another process of some event.

For simple example,

Application A have a textbox and [Send] button.

Application B have a Label.

Enter some text in the textbox and enter [Send] button from Application A, then that input text should be displayed from the Application B.

How could I do this?

All replies (2)

Thursday, February 28, 2019 6:17 AM ✅Answered | 1 vote

Use one of the IPC methods (Interprocess Communications),

like WM_COPYDATA


Thursday, February 28, 2019 7:08 AM ✅Answered | 1 vote

Hi Jeff0803,

Thank you for posting here.

For your question, you want to pass text from Application A to Application B.

You could refer to the following link.

https://social.msdn.microsoft.com/Forums/windows/en-US/e64994d6-413e-41e3-976b-e062fe8074b0/passing-data-between-two-applications-using-cnet?forum=winforms

Test Result:

Hope my advice could be helpful.

Best regards,

Jack

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].