随笔分类 -  C#

摘要:在Winform的开发中,会遇到根据内容设置DataGridView的行的线为虚线,DataGridView自带不具备虚线功能,你可以重写,也可以其他方法,在这里我使用DrawBorder的方法。一、关闭DataGridView自带的CellBorderStyle,即设置DataGridView的C 阅读全文
posted @ 2017-11-21 17:48 张三的歌丶 阅读(417) 评论(0) 推荐(0)
摘要:网站A中的后台代码: 1 //请求的URL 2 HttpWebRequest request = WebRequest.Create("http://192.168.1.132:8... 阅读全文
posted @ 2015-05-15 10:52 张三的歌丶 阅读(373) 评论(0) 推荐(0)
摘要:1 /// 2 /// 转换对象为JSON格式数据 3 /// 4 /// 类 5 /// 对象 6 /// 字符格式的JSON数据 7 public string GetJSON(object o... 阅读全文
posted @ 2015-05-15 10:44 张三的歌丶 阅读(1989) 评论(0) 推荐(0)
摘要:自己写了一个自定义控件的工程,工程名为TestControls,自定义控件的内容为: namespace TestControls { public class TestBoxControl : Control { private string textVal... 阅读全文
posted @ 2015-04-03 20:15 张三的歌丶 阅读(349) 评论(1) 推荐(1)