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