静心

我是小明
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2009年7月22日

摘要: 1.只能输入数字: private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (!(((e.KeyChar >= '0') && (e.KeyChar <= '9')) || e.KeyChar <= 31)) { if (e.KeyChar == '.') { e.Handle... 阅读全文

posted @ 2009-07-22 15:44 俗人一个 阅读(1336) 评论(0) 推荐(2) 编辑