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