public void ClearEvent() { CmbFoName.SelectedItem = null; TxtDeviseNamefo.Clear(); TxtBikNoFo.Clear(); TxtLatfo.Clear(); TxtLonfo.Clear(); LblIdfo.Text = ""; }
private void TxtLatfo_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { string value = TxtLatfo.Text; double num; if (double.TryParse(value, out num)) { TxtLonfo.Focus(); e.Handled = true; } else { MessageBox.Show("Fill the 'F/O Location Latitude' to continue...!", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } }