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.
Updated 7-Aug-15 6:24am
[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:[^]
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