
C#
「已注销」
这个作者很懒,什么都没留下…
展开
-
C#简单语法
if (getBpBc.Tables.Count!=0)原创 2021-05-14 11:02:43 · 134 阅读 · 0 评论 -
winfrom表白程序
private void button2_MouseEnter(object sender, EventArgs e) { int x = this.ClientSize.Width - button2.Width; int y = this.ClientSize.Height - button2.Height; Random r = new Random(); button2....原创 2021-02-27 11:22:49 · 178 阅读 · 0 评论 -
C#中使用HttpClient来Post数据的内容HttpContent的各种格式
一、以下是最常用的四种类型:(1)、application/x-www-form-urlencoded这应该是最常见的 POST 提交数据的方式了。浏览器的原生 表单,如果不设置 enctype 属性,那么最终就会以 application/x-www-form-urlencoded 方式提交数据。 First name: Last name: (2)、multipart/form-data这也是常见的post请求方式,一般用来上传文件,各大服务器的支持也比较好。所以我们使用表原创 2021-01-06 15:40:39 · 5898 阅读 · 0 评论 -
C#压缩文件
zipHelper zip = new zipHelper();zip.ZipFile(DatFileNameAll, TempFileNameAll);log.WriteLog("compression Success");public class zipHelper { /// <summary> /// 压缩字节数组 /// </summary> /// <param name="str"原创 2020-11-26 14:53:57 · 168 阅读 · 0 评论 -
C#文件操作
写文件//DatFileNameAll是全路径 StreamWriter sw = new StreamWriter(DatFileNameAll, true, Encoding.UTF8);listMess.ForEach(x => { sw.WriteLine(x); }); sw.Close(); log.WriteLog("write txt file Success");原创 2020-11-26 14:47:25 · 207 阅读 · 0 评论 -
sqlserver2008升级2016存储过程语法修改工具V2
private void btnUpdate_Click(object sender, EventArgs e) { List<string> listFileName = Directory.GetFiles(@AppConfig.FilePath).ToList(); StringBuilder text = new StringBuilder(); bool twoLine = false; ..原创 2020-10-28 13:59:40 · 407 阅读 · 0 评论 -
C#修改odbc数据源
C#修改odbc数据源 static string targetIP = "127.0.0.1,3000"; static string targetUserName = "wangjp"; static string targetPassWord = @"123"; //注意:密码前面最好加@ static List<FileModel> listFile = null; static string strDbName = s原创 2020-09-06 19:22:40 · 413 阅读 · 0 评论