摘要: 要实现TextBox文本框输入限制 ,先要为TextBox添加KeyPress事件。 代码如下: //数字、小数点(最大到2位)、退格键、负号 private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if ((e.Ke 阅读全文
posted @ 2021-05-17 15:58 与f 阅读(1013) 评论(0) 推荐(0) 编辑