I am doing a quick test for come com ports. I run the following code on my pc but it only adds COM1 to the combo box? My pc has 6 usb ports, so why is it only finding 1?
string[] ports = SerialPort.GetPortNames();
foreach (string port in ports)
{
comboBox1.Items.Add(port);
}