|
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
|
|