代码改变世界

阅读排行榜

DataGridView的单元格控制只能输入数字

2014-01-13 17:34 by 假面Wilson, 9046 阅读, 收藏,
摘要: 主要是应用DataGridView的EditingControlShowing事件。当单元格进入编辑模式时,可以处理执行该编辑控件的自定义初始化的此事件。public DataGridViewTextBoxEditingControl dgvTxt = null; // 声明 一个 CellEdit private void dgv2_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { dgvTxt = (DataGrid... 阅读全文

SharpZipLib 的使用

2011-04-07 17:47 by 假面Wilson, 8416 阅读, 收藏,
摘要: SharpZipLib 是一个免费的Zip操作类库,可以利用它对 ZIP 等多种格式进行压缩与解压。下载网址:http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx。目前的版本为0.86。1、创建zip文件,并添加文件:using(ZipFilezip=ZipFile.Create(@"E:\test.zip")){zip.BeginUpdate();zip.Add(@"E:\文件1.txt");zip.Add(@"E:\文件2.txt");zip.CommitU 阅读全文

C# Dictionary 复制

2013-07-01 10:56 by 假面Wilson, 8101 阅读, 收藏,
摘要: Dictionary dictionary = new Dictionary(); dictionary.Add("cat", 1); dictionary.Add("dog", 3); dictionary.Add("iguana", 5);Dictionary copy = new Dictionary(dictionary); 阅读全文

Asp.Net Mvc4 Webapi Request获取参数

2016-10-19 16:41 by 假面Wilson, 7837 阅读, 收藏,
摘要: 最近用mvc4中的WEBAPI,发现接收参数不是很方便,跟传统的request.querystring和request.form有很大区别,在网上搜了一大圈,各种方案都有,但不是太详细,于是跟踪Action中的变量,仔细查看,最后发现了解决方案,下面是代码: WEBAPI中的Request是Http 阅读全文

Java Springboot javax.net.ssl.SSLException: Connection reset解决方案

2022-08-22 13:53 by 假面Wilson, 7663 阅读, 收藏,
摘要: 接口设置HTTPS TLS1.2后,随机出现SSLException: Connection reset报错: javax.net.ssl.SSLException: Connection reset at sun.security.ssl.Alert.createSSLException(Aler 阅读全文
上一页 1 2 3 4 5 6 7 8 9 ··· 95 下一页