随笔分类 -  C#

摘要:今日做项目需要用到webservice,就试了试。结果在引用那添加是可以的,但是现在我们那个webservice还没写出来,所以就想用动态调用webservice。所以找了很多资料看了看,也在网上查了查,发现一个不错的方法,所以转载过来。using System;using System.Web.S... 阅读全文
posted @ 2015-08-28 16:49 月嘿风高 阅读(283) 评论(0) 推荐(0)
摘要:最近比较闲,总结一些开发中常用到的功能源码,把它挂出来;这样一是自己要用的时候方便查找,二是方便有这方面需求的朋友们下载。大部分源码是在vs2005环境下面开发的,全部通过调试,若下载后源码无法运行,欢迎向我扔鸡蛋石头,o(∩_∩)o...哈哈! 此帖子会不断更新,源码数量不断增加,源码质量不断提... 阅读全文
posted @ 2014-10-09 15:01 月嘿风高 阅读(216) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;using System.Reflection;namespace WinClass{ public class... 阅读全文
posted @ 2014-06-17 17:21 月嘿风高 阅读(660) 评论(0) 推荐(0)
摘要:------------------------写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 月嘿风高 阅读(386) 评论(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 月嘿风高 阅读(301) 评论(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 月嘿风高 阅读(188) 评论(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 月嘿风高 阅读(2088) 评论(0) 推荐(0)