public Form2() { InitializeComponent(); OK_button.DialogResult = DialogResult.OK; Cancel_button.DialogResult = DialogResult.Cancel; // string ComStr = Settings1.Equals(); ComPort_listBox.SetSelected(0, true); }
public void ComPort_InitPortNbr(int portNbr) { comIndex = portNbr; ComPort_listBox.SetSelected(portNbr, true); }