private void WareData_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F12) { CodeTB.Focus(); } }
/// <summary> /// window ctor /// </summary> public NewStationInfo() { InitializeComponent(); try { bl = BLFactory.GetBL(); } catch (BO.MissingData ex) //creating bo failed { MessageBox.Show(ex.Message); } CodeTB.Focus(); }