-
Sep 2nd, 2013, 03:09 AM
#1
Thread Starter
Lively Member
[RESOLVED] display COM PORTS alphabetically
Hi,
How do I display the Ports detected on my device alphabetically?
Now they are being detected OK, but displayed randomly:
COM7
COM4
COM8
COM0
???
I'd like them displayed alphabetically:
COM0
COM4
COM7
COM8
Dim Ports As String() = IO.Ports.SerialPort.GetPortNames()
For Each Port In Ports
cmbPort.Items.Add(Port)
Next Port
cmbPort.SelectedIndex = 3
and as a second matter.....where are all the threads in this subforum (Mobile Development) gone?
Right now I see only 2 threads (3 including this one of mine).
What happened to all the old threads?
Thanks.
-
Sep 3rd, 2013, 01:55 AM
#2
Fanatic Member
Re: display COM PORTS alphabetically
Old threads are still here, all you got to do is "Thread Display Options" > Show from beginning
About your thread, all you need to do is a sort. Such as "Array.Sort(Ports)"
-
Sep 3rd, 2013, 09:58 AM
#3
Thread Starter
Lively Member
Re: display COM PORTS alphabetically
Thank you,
It's working fine.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|