Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27415

Get List of SerialPort via VB.Net

$
0
0
Hi guys, I am trying to create a simple application that can get all available serial port in my machine and then display it into a combobox. I used IO.Ports.SerialPort.GetPortNames() to get them and wanted to store them in an array.

When I tried to run it, no error message appeared yet my combobox is empty. I tried using try..catch statement to check any error but still no results.

Attached herewith are snippet of my code.

I am using VS2010, Windows 8.

Any advice is much appreciated. Thank you.

p/s: combobox1 is the name of the combobox i wish to store the list with.
Attached Images
 

Viewing all articles
Browse latest Browse all 27415

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>