FB console utility to Window form

For issues with communication ports, protocols, etc.
Post Reply
aurbo99
Posts: 3
Joined: Dec 11, 2019 5:05

FB console utility to Window form

Post by aurbo99 »

Greetings

I'm still tinkering with a FB program that I'd like to update from a Console to a Windows form utility, I'm using WinFBE.

I would like take a simple Windows Form and on load to find all available Com ports and update the ListBox1 with the results.

found a VB snippet and I'm not sure of the FreeBasic version

Code: Select all

Sub GetSerialPortNames()
    ' Show all available COM ports.
    For Each sp As String In My.Computer.Ports.SerialPortNames
        ListBox1.Items.Add(sp)
    Next
End Sub
Any help is appreciated
Post Reply