Click here to Skip to main content
15,559,491 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi I am making an application in c# which connects to a serial port(Modem). I am using wmi code generator codes to open com connections but when I run, the result is null thus is empty and it does not display an error.
Posted
Updated 7-Aug-15 6:24am
v2
Comments
[no name] 7-Aug-15 10:59am    
You use the SerialPort class to open a serial port and read/write to it.

1 solution

Use the System.IO.Ports.SerialPort class to acces the COM ports. More info: https://msdn.microsoft.com/en-us/library/system.io.ports.serialport%28v=vs.110%29.aspx[^]
 
Share this answer
 

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