By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,422 Members | 1,455 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,422 IT Pros & Developers. It's quick & easy.

Find COMx Port on current computer using .NET

P: n/a
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
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Thu, 26 Jun 2008 12:44:02 -0700, BMillikan wrote:
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
--
http://www.thinkersroom.com/bytes
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.