上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页
摘要: public static string HttpPost(string url, string postData, bool isPost = true) { string method = isPost ? "POST" : "GET"; HttpHelper http = new HttpHelper(); ... 阅读全文
posted @ 2017-10-10 16:06 会弹猫的吉他 阅读(183) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.Caching; namespace Utility { /// /// 缓存操作,默认缓存1分钟 /// publ... 阅读全文
posted @ 2017-10-10 11:14 会弹猫的吉他 阅读(551) 评论(0) 推荐(0) 编辑
摘要: 圆角按钮要设置: 阅读全文
posted @ 2017-10-09 16:32 会弹猫的吉他 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 调用OCX控件的步骤:1、在系统中注册该ocx控件,命令:regsvr32.exe 控件位置(加 /u 参数是取消注册)2、在.net的工具箱中添加该控件,拖到form中去就可以了。 不用工具箱的话,自己手工添加,需要注意一个问题,就是要用Aximp.exe来包装一下ocx控件的类,然后再程序中引用 阅读全文
posted @ 2017-09-26 14:56 会弹猫的吉他 阅读(2894) 评论(0) 推荐(0) 编辑
摘要: private void SetControlValue(Control control, object value) { try { control.FindForm().Invoke((Action)(() => { if (... 阅读全文
posted @ 2017-09-15 10:13 会弹猫的吉他 阅读(288) 评论(0) 推荐(0) 编辑
摘要: var aa = ltB.FindAll(b => ltA.Any(a => a.PolicyNo == b.ID)); //得出不同 var expectedList = ltB.Except(aa).ToList(); 阅读全文
posted @ 2017-09-14 17:38 会弹猫的吉他 阅读(131) 评论(0) 推荐(0) 编辑
摘要: //1.异步调用 //带参 Action action=(obj)=>method(obj); action.BeginInvoke(obj,ar=>action.EndInvoke(ar),null); //不带参 Action action=()=>method(); action.BeginInvoke(ar=>action.EndInvoke(ar),null); //2.异步调用 p... 阅读全文
posted @ 2017-08-29 09:47 会弹猫的吉他 阅读(189) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { List tarArr = new List(); tarArr.Add("a"); tarArr.Add("b"); tarArr.Add("c"); tarArr.Add("d"); ... 阅读全文
posted @ 2017-08-28 10:27 会弹猫的吉他 阅读(682) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 要执行的方法 /// </summary> public delegate void MethodToDo(); /// <summary> /// 处理错误的方法 /// </summary> /// <param name="e">错误对象</param> p 阅读全文
posted @ 2017-08-17 15:52 会弹猫的吉他 阅读(223) 评论(0) 推荐(0) 编辑
摘要: //缺少编译器要求的成员“ystem.Runtime.CompilerServices.ExtensionAttribute..ctor” namespace System.Runtime.CompilerServices { public class ExtensionAttribute : Attribute { } } 阅读全文
posted @ 2017-08-11 17:04 会弹猫的吉他 阅读(144) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页