Does C# provide an effective means of scanning the available COM ports? I would like to have a dropdown list in my application wherein the user can select one of the detected C
Use WMI through the System.Management namespace. A quick Google finds this code:
using System;
using System.Management;
public class Foo
{
public static void Main()
{
var instances = new ManagementClass("Win32_SerialPort").GetInstances();
foreach ( ManagementObject port in instances )
{
Console.WriteLine("{0}: {1}", port["deviceid"], port["name"]);
}
}