摘要: 调用TextBox的KeyPress事件private void txtUserId_KeyPress(object sender, KeyPressEventArgs e){ //如果输入的不是数字键,也不是回车键、Backspace键,则取消该输入 if (!(Char.IsNumber(e.KeyChar)) && e.KeyChar!=(char)13 && e.KeyChar!=(char)8) { e.Handled = true; } } 阅读全文
posted @ 2013-08-08 16:10 月嘿风高 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 需要打开源码改一下数据源和表名还有字段名C#代码usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.IO;usingSystem.Data.OleDb;namespaceImageSaveOracleBlobDataBase{publicpartialclassForm1:Form{//////作者:黑色头发///C#Win 阅读全文
posted @ 2013-08-08 16:09 月嘿风高 阅读(2026) 评论(0) 推荐(0) 编辑