jjzjj

comboBoxComPort

全部标签

c# - 获取串口信息

我有一些代码可以将串行端口加载到组合框中:ListtList=newList();comboBoxComPort.Items.Clear();foreach(stringsinSerialPort.GetPortNames()){tList.Add(s);}tList.Sort();comboBoxComPort.Items.Add("SelectCOMport...");comboBoxComPort.Items.AddRange(tList.ToArray());comboBoxComPort.SelectedIndex=0;我想将端口描述(类似于设备管理器中为COM端口显示的内容

c# - 获取串口信息

我有一些代码可以将串行端口加载到组合框中:ListtList=newList();comboBoxComPort.Items.Clear();foreach(stringsinSerialPort.GetPortNames()){tList.Add(s);}tList.Sort();comboBoxComPort.Items.Add("SelectCOMport...");comboBoxComPort.Items.AddRange(tList.ToArray());comboBoxComPort.SelectedIndex=0;我想将端口描述(类似于设备管理器中为COM端口显示的内容