会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
x_蜡笔小新
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
下一页
2016年11月21日
C#Winform窗体中传值
摘要: 在窗体Form2中定义公有属性Form2Value,获取和设置textBox1的文本值 并且还定义一个accept事件 public string Form2Value { get { return this.textBox1.Text; } set { this.textBox1.Tex...
阅读全文
posted @ 2016-11-21 13:36 会弹猫的吉他
阅读(306)
评论(0)
推荐(0)
2016年11月3日
C# WebService服务Post提交
摘要: public string WebServerTest(string PostData) { PostData = "jsonData=" + PostData; string POSTURL = "http://101.201.78.100:8888/ChannelWebService.asmx/CheckIsConnected"...
阅读全文
posted @ 2016-11-03 09:19 会弹猫的吉他
阅读(6918)
评论(0)
推荐(0)
2016年10月24日
C# redis使用
摘要: 1.下载安装Redis常用组件 下载地址https://github.com/dmajkic/redis/downloads 把文件内容拷贝到需要安装的目录下,如:E:\redis-2.8.17 2.启动服务 在CMD命令行输入如下命令 :cd E:\redis-2.8.17 在CMD命令行输入如下
阅读全文
posted @ 2016-10-24 10:11 会弹猫的吉他
阅读(181)
评论(0)
推荐(0)
2016年10月19日
在WebBrowser中截获弹出对话框内容并将其屏蔽
摘要: v
阅读全文
posted @ 2016-10-19 13:47 会弹猫的吉他
阅读(1303)
评论(0)
推荐(0)
2016年10月11日
C# 只移除最后一个字符
摘要: string str = "|||"; Console.WriteLine(str.Substring(0, str.Length - 1)); Console.WriteLine(str.Remove(str.LastIndexOf("|"), 1)); Console.WriteLine(str.Remove(str.Length - 1)); 注:用str.TrimEnd('|')会将所有...
阅读全文
posted @ 2016-10-11 10:08 会弹猫的吉他
阅读(2874)
评论(0)
推荐(0)
HTML特殊转义字符列表
摘要: HTML特殊转义字符列表 最常用的字符实体 显示 说明 实体名称 实体编号 空格   < 小于 < < > 大于 > > & &符号 & & " 双引号 " " © 版权 © © ® 已注册商标
阅读全文
posted @ 2016-10-11 09:15 会弹猫的吉他
阅读(319)
评论(0)
推荐(0)
2016年10月8日
Response.BinaryWrite()方法输出二进制图像
摘要: protected void Page_Load(object sender, EventArgs e) { FileStream fs = new FileStream(Server.MapPath("未命名.jpg"), FileMode.Open);//将图片文件存在文件流中 long fslength = fs.Length...
阅读全文
posted @ 2016-10-08 00:51 会弹猫的吉他
阅读(2460)
评论(0)
推荐(0)
2016年9月29日
C#编写最小化时隐藏为任务栏图标的 Window appllication.
摘要: 1.设置WinForm窗体属性showinTask=false 2.加notifyicon控件notifyIcon1,为控件notifyIcon1的属性Icon添加一个icon图标。 3.添加窗体最小化事件(首先需要添加事件引用): this.SizeChanged += new System.Ev
阅读全文
posted @ 2016-09-29 15:24 会弹猫的吉他
阅读(365)
评论(0)
推荐(0)
2016年9月18日
C# Unicode编码
摘要: /// /// 汉字转换为Unicode编码 /// /// 要编码的汉字字符串 /// Unicode编码的的字符串 public static string ToUnicode(string str) { byte[] bts = Encoding.Unicode.Ge...
阅读全文
posted @ 2016-09-18 09:35 会弹猫的吉他
阅读(735)
评论(0)
推荐(0)
2016年9月9日
Linq排序,获取前5条数据
摘要: _dic = _dic.OrderByDescending(x => x.Value).ToDictionary(x=>x.Key,x=>x.Value); var Num = _dic.ToList().Take(5).Select(a => a.Key.ToString()).ToArray()
阅读全文
posted @ 2016-09-09 14:20 会弹猫的吉他
阅读(3466)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
下一页
公告