private void txtNumber_KeyPress(object sender, KeyPressEventArgs e)
{
if (!Char.IsDigit(e.KeyChar)&&e.KeyChar!=8)
{
e.Handled = true;
}
}
WinForm文本框的输入验证
最新推荐文章于 2019-09-28 09:44:10 发布