摘要:private void TextBox1_KeyPress(object sender, KeyPressEventArgs e) //文本框输入字符过滤 { if (Convert.ToInt32(e.KeyChar) >= 48 && Convert.ToInt32(e.KeyChar) < 58 || //包括数字 //(Convert.ToInt32(e.K...
阅读全文
随笔分类 - C#
摘要:private void TextBox1_KeyPress(object sender, KeyPressEventArgs e) //文本框输入字符过滤 { if (Convert.ToInt32(e.KeyChar) >= 48 && Convert.ToInt32(e.KeyChar) < 58 || //包括数字 //(Convert.ToInt32(e.K...
阅读全文
|