Subject: Getserialportname() help!!
Posted By: Sudjourner Post Date: 1/14/2007 3:06:07 AM
Hi!
I am new to serial port connections. And the first thing that I want to do is to see all available com ports in a combo box but for some reason the code that I got would not work.

Currently I have a serial device connected with my computer. Also, when I used hyperterminal the serial device is working fine and I could see the com ports.

So where did I go wrong?
Below is the code I used to display the port names and it comes from MSDN help.
    Sub GetSerialPortNames()
        ' Show all available COM ports.
        For Each sp As String In My.Computer.Ports.SerialPortNames
            cmbPortName.Items.Add(sp)
        Next
    End Sub 'Supposed to get available com ports

Go to topic 54647

Return to index page 64
Return to index page 63
Return to index page 62
Return to index page 61
Return to index page 60
Return to index page 59
Return to index page 58
Return to index page 57
Return to index page 56
Return to index page 55