控制用户在textbox里只能输入数字
摘要:
如下代码即可.在textbox的keypress里边加入如下代码: private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (!Char.IsDigit(e.KeyChar)) { e.Handled = true; ... 阅读全文
posted @ 2006-05-10 15:32 c#之旅 阅读(4328) 评论(2) 推荐(0) 编辑