摘要: 1 class Program 2 { 3 private const uint WM_SYSCOMMAND = 0x112; //系统消息 4 private const int SC_MONITORPOWER = 0xF170; //关闭显示器的系统命令 5 private const int... 阅读全文
posted @ 2015-08-06 17:08 五好青年,勇往直前 阅读(618) 评论(0) 推荐(0)
摘要: 1. BBC — 透视未来 简介:这里满满都是有证有据的干货,每天你都能通过里面的文章透过现象看到事物的本质,让你每天都会比昨天的你变得更聪明!这里的文章包罗万象,涵盖了如《女人高潮之谜》的下里巴人,到如《NASA 太空控制密室解密》的高山流水。 链接:http://www.bbc.com/... 阅读全文
posted @ 2015-08-05 11:37 五好青年,勇往直前 阅读(683) 评论(0) 推荐(0)
摘要: BackgroundWorker主要用来提供后台运算服务(防止用户前台无响应等待),并提供服务进度的类;代码如下: 1 BackgroundWorker bgw = new BackgroundWorker(); 2 bgw.DoWork += bgw_DoWork; 3 ... 阅读全文
posted @ 2015-08-04 09:46 五好青年,勇往直前 阅读(677) 评论(0) 推荐(0)
摘要: IntroductionWhile coding an application that displays a detailed report in aScrollViewer, it was decided that it would be nice toprintthe report to ap... 阅读全文
posted @ 2015-07-30 16:34 五好青年,勇往直前 阅读(958) 评论(0) 推荐(0)
摘要: 我们在写灌水机器人、抓资源机器人和Web网游辅助工具的时候第一步要实现的就是用户登录。那么怎么用C#来模拟一个用户的登录拉?要实现用户的登录,那么首先就必须要了解一般网站中是怎么判断用户是否登录的。HTTP协议是一个无连接的协议,也就是说这次对话的内容和状态与上次的无关,为了实现和用户的持久交互,网... 阅读全文
posted @ 2015-07-30 10:16 五好青年,勇往直前 阅读(1065) 评论(0) 推荐(1)
摘要: IE7_x64 = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; M... 阅读全文
posted @ 2015-07-30 09:51 五好青年,勇往直前 阅读(357) 评论(0) 推荐(0)
摘要: MessageBoxResult mr = CMessageBox.ShowQuestionMessage("点击“是”继续,点击“否”取消。", "确认删除?"); if (mr == MessageBoxResult.Yes) {} 阅读全文
posted @ 2015-07-29 17:39 五好青年,勇往直前 阅读(1065) 评论(0) 推荐(0)
摘要: HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("http://home.cnblogs.com/u/weiweiboqi/"); HttpWebResponse HttpWResp = (HttpWe... 阅读全文
posted @ 2015-07-29 11:13 五好青年,勇往直前 阅读(532) 评论(0) 推荐(0)
摘要: c# 模拟 网页实现12306登陆、自动刷票、自动抢票完全篇(转)这一篇文章,我将从头到尾教大家使用c#模拟网页面登陆12306网站,自动刷票,选择订票人,到最后一步提交订单。研究过HTTP协议的童鞋们都 知道,我们在访问网站时,是有两种方式的,POST和GET方式,HTTP协议是TCP/IP的一部... 阅读全文
posted @ 2015-07-29 10:10 五好青年,勇往直前 阅读(522) 评论(0) 推荐(0)
摘要: 基础类,继承与ICommand接口 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Windows.Input; 6 ... 阅读全文
posted @ 2015-07-28 10:42 五好青年,勇往直前 阅读(8504) 评论(0) 推荐(0)