Leo

软件编程技术

导航

2008年7月2日

摘要: 只能输入数字的TextBox 代码如下: private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if(!char.IsDigit(e.KeyChar)) e.Handled = true; //'\b'是退格键值 if(e.KeyCh... 阅读全文

posted @ 2008-07-02 10:48 Leo(binbin) 阅读(384) 评论(0) 推荐(0)

点击这里给我发消息