Last active
September 2, 2015 17:14
-
-
Save wolf99/0cfca8a392262b729573 to your computer and use it in GitHub Desktop.
Get a collection serial port names using VB.NET
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Function GetSerialPortNames() As List(Of String) | |
Dim PortNames As New List(Of String) | |
For Each PortName In My.Computer.Ports.SerialPortNames | |
PortNames.Add(PortName) | |
Next | |
Return PortNames | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment