Friday, January 4, 2008

Get the list of ports(Serial...) available in the windows system using C#

I was just looking into writing an app that connects to serial ports. I found this code which migth help:
foreach (string s in System.IO.Ports.SerialPort.GetPortNames())
{
comboBox1.Items.Add(s);
}

No comments: