Find COMx Port on current computer using .NET

  • Thread starter Thread starter BMillikan
  • Start date Start date
B

BMillikan

How do I find which serial COM ports are available on a particular computer?
Basically, I'd likely something very similar to what HyperTerminal does where
it populates and dropdown combobox with available COM ports.

Thanks,
Brian
 
How do I find which serial COM ports are available on a particular computer?
Basically, I'd likely something very similar to what HyperTerminal does where
it populates and dropdown combobox with available COM ports.

Thanks,
Brian

Call the static method

SerialPort.GetPortNames()

This will give you all the available COM ports
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top