Click here to Skip to main content
15,072,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,
I need help, how to communicate two diferent c# winforms applications. one appli is running on COM5 and another is on COM6.

COM5 application sends data that should be received by COM6 applicatin
Posted
Comments
agent_kruger 13-Dec-13 1:25am
   
application running on com port!! can you give a detail description what you want to achieve?
Member 10263519 13-Dec-13 1:42am
   
just i need to test ,whether they are sending/receiving data .

in application1 ,i have serialport and it's port is COM5.
in application2 ,i have serialport and it's port is COM6.

am sending data from application1 that should be received in appl2 textbox.both applications are in different namespaces.
agent_kruger 13-Dec-13 3:13am
   
so you are trying to send and recieve data from one running application to another via com ports?

1 solution

You can use the class System.IO.Ports.SerialPort:
http://msdn.microsoft.com/en-us/library/system.io.ports.serialport%28v=vs.110%29.aspx[^].

See also, very important for any kinds of communications: http://msdn.microsoft.com/en-us/library/3e8s7xdd%28v=vs.110%29.aspx[^].

—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