public void ClearEvent() { CmbFoName.SelectedItem = null; TxtDeviseNamefo.Clear(); TxtBikNoFo.Clear(); TxtLatfo.Clear(); TxtLonfo.Clear(); LblIdfo.Text = ""; }
private void TxtBikNoFo_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { if (TxtBikNoFo.Text != "") { TxtLatfo.Focus(); e.Handled = true; } else { MessageBox.Show("Fill the 'Bike Number' to continue...!", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } }