上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页
摘要: //sss={"100"}。有两个花括号 string sss = string.Format("{{\"100\"}}", 100); //string.Format("{0,向(正为右,负为左)对齐的字符串长度}","展示的字符串"); string s = string.Format("{0... 阅读全文
posted @ 2017-06-17 16:46 冲天小肥牛 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 1、 2、拷贝 3、当对单元格内容进行格式修改时,CellParsing事件比较好(如变成大些) 完! 阅读全文
posted @ 2017-06-17 16:16 冲天小肥牛 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 添加列时,必须设置列的CellTemplate,否则应该报错! 一、只添加text样式 1 //每一列必须设置CellTemplate 2 //第一列 3 dataGridView1.Columns.Add(new DataGridViewColumn() {Name="name", HeaderT 阅读全文
posted @ 2017-06-15 18:05 冲天小肥牛 阅读(3621) 评论(0) 推荐(0) 编辑
摘要: 设置dragEnter 设置DragDrop using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using Sys 阅读全文
posted @ 2017-06-15 13:42 冲天小肥牛 阅读(438) 评论(0) 推荐(0) 编辑
摘要: private void listView1_MouseUp(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right)//设置鼠标右键 { ListViewItem li=listView1.GetItemAt(e.X... 阅读全文
posted @ 2017-06-15 09:07 冲天小肥牛 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 第一种办法: 将ListView的数据放入DataView中,设置DataView的Sort属性,然后将DataView中的内容在ListView中展示出来。 (1)初始化ListView,将ListView的数据存入DataTable中 (2)从DataTable中获得DataView (3)设置 阅读全文
posted @ 2017-06-14 18:22 冲天小肥牛 阅读(964) 评论(0) 推荐(0) 编辑
摘要: 加密时:先对string进行utf8解析成数组-->对数组进行加密-->对加密结果用base64解析成string。 那么揭秘时,对字符串的解析方式是必须要“倒”过来的,就成这样子了: 解密时:先对string进行base64解析成数组-->对数组进行解密-->对解密结果用utf8解析成string 阅读全文
posted @ 2017-05-19 16:00 冲天小肥牛 阅读(279) 评论(0) 推荐(0) 编辑
摘要: (1)get 发送url请求 设置请求方式 设置请求内容格式 获得回应对象,接收流 读取流 (2)post 发送url请求 设置请求方式 设置请求内容格式 设置请求内容长度(可以不设置)(长度是byte数组的长度,不是string类型的长度) 将post数据添加到请求流中(重中之重GetReques 阅读全文
posted @ 2017-05-13 14:44 冲天小肥牛 阅读(4616) 评论(0) 推荐(0) 编辑
摘要: (1) (2)但是,电脑自动生成对象,在解析时并不全是能解析成功的。如下 完! 阅读全文
posted @ 2017-05-06 14:21 冲天小肥牛 阅读(2878) 评论(0) 推荐(0) 编辑
摘要: 注意:dataGridView1.HitTest 阅读全文
posted @ 2017-05-03 15:54 冲天小肥牛 阅读(360) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页