public void TextBoxClearEvent()
 {
     TxtFarmerLat.Clear();
     TxtFarmarLon.Clear();
     CmbFOfficer.SelectedItem = null;
     CmbFarmer.SelectedItem   = null;
     CmbFrmArea.SelectedItem  = null;
 }
 private void TxtFarmerLat_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         string value = TxtFarmerLat.Text;
         double num;
         if (double.TryParse(value, out num))
         {
             e.Handled = true;
             TxtFarmarLon.Focus();
         }
         else
         {
             MessageBox.Show("Fill the 'Farmer Latitude' to continue...!", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
     }
 }