Available Ports : SerialPort « Development « VB.Net






Available Ports

 

Imports System
Imports System.IO.Ports
Imports System.Threading

Public Class PortChat
    Public Shared Sub Main()
        Dim s As String
        For Each s In SerialPort.GetPortNames()
            Console.WriteLine("   {0}", s)
        Next s
    End Sub
End Class

   
  








Related examples in the same category

1.SerialPort Class Represents a serial port resource.
2.Available Parity options
3.Available Stop Bits options
4.Available Handshake options
5.SerialPort.DataReceived Event
6.SerialPort.GetPortNames Method Gets an array of serial port names for the current computer.