/// <summary> /// Scan the ports and populate the ComboBox with options /// </summary> /// <param name="comboBox">The combobox to load the list of ports into</param> public void updateAvailablePorts(ref ComboBox comboBox) //Function scans computer for available COM ports and puts them into the dropdown box for selection { var AvailablePorts = serialComm.CheckPorts(); // put available ports into variable comboBox.DataSource = AvailablePorts; //insert into drop box }
private void refreshCOMListToolStripMenuItem_Click(object sender, EventArgs e) { dedDevice.CheckPorts(); }