예제 #1
0
 private void timer_Tick(object sender, EventArgs e)
 {
     comboBoxSerialPort.DataSource = SerialPortInfo.GetAllCOMs();
 }
예제 #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     comboBoxSerialPort.DataSource  = SerialPortInfo.GetAllCOMs();
     comboBoxParity.SelectedIndex   = 0;
     comboBoxStopBits.SelectedIndex = 1;
 }