using System.IO.Ports; //find all com ports and add to combo box private void frmPP_Load(object sender, EventArgs e) { //---show all available Com ports foreach (string sp in SerialPort.GetPortNames()) { cboPorts.Items.Add(sp); } cboPorts.SelectedIndex = -1; }