随风而去

博客园 首页 新随笔 联系 订阅 管理

2007年11月27日 #

摘要: 添加KeyPress 事件private void TextBox1_KeyPress(object sender, KeyPressEventArgs e) { if (!(char.IsNumber(e.KeyChar) || e.KeyChar == '\b')) { e.Handled = true; } } 阅读全文
posted @ 2007-11-27 11:41 Aaron_Zhang 阅读(413) 评论(0) 推荐(0)