摘要: ------------------------写txt文件---------------------------------string fileName = Path.Combine(Application.StartupPath, @"History.txt");StreamWriter writer = new StreamWriter(fileName,false,Encoding.Default);foreach (string name in this.userName.AutoCompleteCustomSource){ writer.WriteLine(n 阅读全文
posted @ 2013-08-08 16:13 月嘿风高 阅读(368) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading;namespace ProgressBar{ public partial class Form1 : Form { public Form1() { ... 阅读全文
posted @ 2013-08-08 16:12 月嘿风高 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 调用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) 编辑