public void TextBoxClearEvent() { TxtAreaName.Clear(); TxtCustLat.Clear(); TxtCustLon.Clear(); CmbCustID.SelectedItem = null; CmbVhiID.SelectedItem = null; CmbVhiID.SelectedItem = null; LblId.Text = ""; }
private void CmbSalesRep_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { if (CmbSalesRep.SelectedItem != null) { TxtCustLat.Focus(); e.Handled = true; } else { MessageBox.Show("Fill the 'Sales Rep' to continue...!", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } }