private void OnStartTxtKeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { StationBoardBtn.PerformClick(); } StartLabelUpdate(StartLstBox, e.KeyCode); }
private void OnStartLstBoxKeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Down || e.KeyCode == Keys.Up) { e.Handled = true; } if (e.KeyCode == Keys.Enter) { StationBoardBtn.PerformClick(); } StartLabelUpdate(StartLstBox, e.KeyCode); }