摘要: 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 阅读全文
posted @ 2012-08-14 17:30 +-/\-+ 阅读(307) 评论(0) 推荐(0) 编辑