public static IsAlphaOnly ( string line ) : bool | ||
line | string | The string to be checked |
return | bool |
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"); } }