随笔 - 252, 文章 - 13, 评论 - 176, 阅读 - 58万
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  c#

摘要:Form1.cs using CefSharp; using CefSharp.WinForms; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; usin 阅读全文

posted @ 2020-02-02 20:19 快乐家++ 阅读(599) 评论(0) 推荐(0) 编辑

摘要:<rule name="Redirect" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^(w1.baidu.com|w2.taobao.com|xyw0001.my 阅读全文

posted @ 2019-04-10 22:54 快乐家++ 阅读(4249) 评论(0) 推荐(0) 编辑

摘要:原理:查找项目目录下的 csproj 文件,解析它,找到节点TargetFrameworkVersion,判断.net版本 阅读全文

posted @ 2018-11-28 16:52 快乐家++ 阅读(942) 评论(0) 推荐(0) 编辑

摘要:服务器提交了协议冲突. Section=ResponseHeader Detail=CR 后面必须是 LF The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by  阅读全文

posted @ 2016-12-08 21:18 快乐家++ 阅读(2695) 评论(0) 推荐(0) 编辑

摘要: 阅读全文

posted @ 2015-12-16 15:51 快乐家++ 阅读(482) 评论(0) 推荐(0) 编辑

摘要:一、 假设有两个List对象 ,List1和List2,如下方法判断两个List是否相等List1.All(List2.Contains) && List1.Count == List2.Count二、C#中如何判断list是否完整包含另一个listbool IsContainsAll(List L... 阅读全文

posted @ 2015-11-08 23:06 快乐家++ 阅读(17041) 评论(1) 推荐(0) 编辑

摘要:// 一、使用资源文件(内存)中的字体System.Runtime.InteropServices.GCHandle hObject = System.Runtime.InteropServices.GCHandle.Alloc(Properties.Resources.QuartzMS, Syst... 阅读全文

posted @ 2015-09-22 19:51 快乐家++ 阅读(820) 评论(0) 推荐(0) 编辑

摘要:我自己写的 /// /// 函数运行超时则终止执行(超时则返回true,否则返回false) /// /// 参数类型 /// 要被执行的函数 /// 函数需要的一个参数 /// 超时时间(毫秒) ... 阅读全文

posted @ 2015-09-02 23:18 快乐家++ 阅读(2602) 评论(0) 推荐(0) 编辑

摘要:using System;using System.Collections.Generic;using System.Threading;namespace ConsoleApplication1{ class Program { static void Main(stri... 阅读全文

posted @ 2015-08-09 20:08 快乐家++ 阅读(2313) 评论(0) 推荐(0) 编辑

摘要:第一步:配置管理器中新建解决方案配置第二步:定义条件编译符号:第三步:在代码中使用自定义的条件编译#if CustomDebugConsole.WriteLine("dsads");#endif 阅读全文

posted @ 2015-06-15 23:42 快乐家++ 阅读(475) 评论(0) 推荐(0) 编辑

摘要:string Cookies = string.Empty; /// /// 获取在线人数 (51.la统计器) /// /// 站点ID string TongJi_51La(string siteid) ... 阅读全文

posted @ 2015-03-20 17:33 快乐家++ 阅读(2634) 评论(0) 推荐(0) 编辑

摘要:乐博网最新补充(乐博网一步步教你如何最快查看本机.net framework的版本):方法一:第一步: 打开“我的电脑“,在地址栏输入 %systemroot%\Microsoft.NET\Framework如图:第二步:从列出来的文件夹中,我们可以看到v1.0.3705 v2.0.50727 v3... 阅读全文

posted @ 2015-02-15 21:30 快乐家++ 阅读(1447) 评论(0) 推荐(0) 编辑

摘要:很多时候需要输出程序耗时,然后记录下来,总是在程序执行开始记录当前时间点,在结尾记录结束时间点,然后两个时间相减,那么有没有其他稍微像样点的方法呢? 告诉你,有滴 ; )这个方法主体就是Stopwatch他的描述就是:用于准确的测量运行时间, 各位需要记录耗时的同学们掌声在哪里?具体使用:Syste... 阅读全文

posted @ 2014-10-19 08:31 快乐家++ 阅读(11061) 评论(2) 推荐(0) 编辑

摘要:有点类似QQ聊天框所带的RichText. 功能进行了RTF的封装,直接调用函数插入图片,连接,特列文字。具体请查看代码ExRichTextBox_src 阅读全文

posted @ 2014-09-06 00:40 快乐家++ 阅读(486) 评论(0) 推荐(0) 编辑

摘要:WinForm下的ComboBox默认是以多行文本来设定显示列表的, 这通常不符合大家日常的应用,因为大家日常应用通常是键/值对的形式去绑定它的.参考了一些网上的例子,最终写了一个辅助类用于方便对ComboBox的操作:用下面这个类的实例作为ComboBox的添加项:using System;usi... 阅读全文

posted @ 2014-07-10 22:52 快乐家++ 阅读(19874) 评论(0) 推荐(3) 编辑

摘要:.AliceBlue240,248,255.LightSalmon255,160,122.AntiqueWhite250,235,215.LightSeaGreen32,178,170.Aqua0,255,255.LightSkyBlue135,206,250.Aquamarine127,255,2... 阅读全文

posted @ 2014-06-27 10:22 快乐家++ 阅读(899) 评论(0) 推荐(0) 编辑

摘要://方法一:只禁止多个进程运行using System;using System.Collections.Generic;using System.Windows.Forms;namespace DuoYeMianIE{ static class Program { ///... 阅读全文

posted @ 2014-06-15 19:55 快乐家++ 阅读(14645) 评论(2) 推荐(1) 编辑

摘要:private void btnBaoshi_Click(object sender, EventArgs e) { try { System.Threading.Thread thread = ... 阅读全文

posted @ 2014-06-08 11:09 快乐家++ 阅读(1580) 评论(0) 推荐(1) 编辑

摘要://-----------------------------------------------------------------------------////算法:排列组合类//////调用方法如下:////1.GetPermutation(T[],startIndex,endIndex)/... 阅读全文

posted @ 2011-11-05 08:38 快乐家++ 阅读(351) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示