public static bool IsAlphaOnly(string line) { return Regex.IsMatch(line, @"^[a-z\s\t\n\r\n]+$", RegexOptions.IgnoreCase); }
private void CmCountry_Validating(object sender, CancelEventArgs e) { if (!Validator.IsAlphaOnly(CmCountry.Text)) { MessageBox.Show("Invalid format for Criteria > Country. Must contain letters only!", "Validation Error"); } }