Take a look at this link below
http://csharp.simpleserial.com/
"Kevin E." <(E-Mail Removed)> wrote in message
news:382648F7-36E7-472E-A675-(E-Mail Removed)...
>I just started looking into communicating with devices over a serial port.
>I
> created a new project, and added "using System.IO.Ports" at the top of all
> the code. I have a device connected via bluetooth which has a COM4 port
> open
> for incoming communication. The point I get stuck at is trying to
> determine
> what the COM port is named so i can access the SerialPort.Readline()
> method.
> Is there a way i can get a list of all the COM port names that are open on
> my
> computer. Any suggestions or tips are greatly appreciated. Thanks.