一个离开.NET的程序员

ryhan

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年7月14日

摘要: 原http://blog.csdn.net/BusyDonkey/article/details/5327665在C#里现在有3个Timer类:System.Windows.Forms.TimerSystem.Threading.TimerSystem.Timers.Timer这三个Timer我想大家对System.Windows.Forms.Timer已经很熟悉了,唯一我要说的就是这个Timer在激发Timer.Tick事件的时候,事件的处理函数是在程序主线程上执行的,所以在WinForm上面用这个Timer很方便,因为在From上的所有控件都是在程序主线程上创建的,那么在Tick的处理函数 阅读全文
posted @ 2011-07-14 14:47 ryhan 阅读(12066) 评论(1) 推荐(3) 编辑

摘要: ***寻找窗口的代码***用法:FindWindow fw = new FindWindow(IntPtr.Zero, null, "ThunderDFrame", 10);//查找Title为ThunderDFrame的窗口,如果10秒内还没找到,返回false-----------------------------------------------------------------------------------------------------------------------------------------------------using Sys 阅读全文
posted @ 2011-07-14 11:47 ryhan 阅读(421) 评论(0) 推荐(0) 编辑

摘要: [Visual Stdio 2005下调试通过]--------------------------------------------------------------------------------------------------------------------------------------- /// <summary> /// 提供全屏和指定窗口的截图 以及保存为文件的类 /// </summary> public class ScreenCapture { /// <summary> /// 全屏截图 /// </summa 阅读全文
posted @ 2011-07-14 11:44 ryhan 阅读(1436) 评论(3) 推荐(0) 编辑