刚刚.Net相关知识技术互动平台(绿色天堂)
.Net知识技术交流、探讨、请教与共享(Visual Studio.Net、Asp.Net、VB/C#、.NetWindows应用程序、Windows服务、Socket通信、GIS、ArcGIS、SuperMap、JavaScript、Sql Server和Oracle等)
摘要: 只能输入整数 方法一 private void tb_KeyPress(object sender, KeyPressEventArgs e) { //如果输入的不是退格和数字,则屏蔽输入 if (!(e.KeyChar == '\b' || (e.KeyChar >= '0' && e.KeyCh 阅读全文
posted @ 2020-11-27 18:49 刚刚 阅读(756) 评论(0) 推荐(0) 编辑