摘要:
privatevoid NumberAccpter(object sender, KeyPressEventArgs e) { int keyValue = (int)e.KeyChar; if ((keyValue >=48&& keyValue <=57) || keyValue ==8|| keyValue ==46) { if (sender !=null&& sender is TextBox && keyValue ==46) { if (((TextBox)sender).Text.IndexOf(".&quo 阅读全文