.PortName = cboComPort.Text
Dim Portnames As String() = SerialPort.GetPortNames If Portnames.Length = 0 Then MsgBox("Сперва подключите устройство") Me.Close() Exit Sub End If cboComPort.Items.AddRange(Portnames) cboComPort.Text = Portnames(0)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)