Anyone here has an idea where I can get the ports name listed in my PC?
By using this code:
For i As Integer = 0 To My.Computer.Ports.SerialPortNames.Count - 1
cmbPort.Properties.Items.Add(My.Computer.Ports.SerialPortNames(i))
Next
I could get COM26
and etc. if any, but that's not what I want. Instead of retrieving COM26
, I want USB-SERIAL CH340
or USB-SERIAL CH340 (COM26)
. How could I do that?