private void txt_CarTypeValue_KeyPress(object sender, KeyPressEventArgs e) { try { if (CommonalityEntity.DigitalMethod(e)) { PublicClass.ShowToolTip(ToolTipIcon.Info, "提示", "车辆类型编码值必须为纯数字!", txt_CarTypeValue, this); } } catch { CommonalityEntity.WriteTextLog("CarTypeForm.txt_CarTypeValue_KeyPress()"); } }