Daqing

坚持一份信仰是人生的基础!

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

2011年3月23日

摘要: PrintDocument实例所有的订阅事件如下:1.创建一个PrintDocument的实例.如下:System.Drawing.Printing.PrintDocument docToPrint = new System.Drawing.Printing.PrintDocument(); 2.设置打印机开始打印的事件处理函数.函数原形如下:void docToPrint_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) 3.将事件处理函数添加到PrintDocument的PrintPage事件中。d 阅读全文
posted @ 2011-03-23 10:38 TSAPI 阅读(10792) 评论(7) 推荐(0) 编辑

摘要: NET Framework里面提供了三种Timer:•System.Windows.Forms.Timer•System.Timers.Timer•System.Threading.TimerVisual Studio 2003的工具箱里面默认提供了System.Windows.Forms.Timer和System.Timers.Timer两种,而Visual Studio 2005中确只默认提供了System.Windows.Forms.Timer这一种。这里简单的介绍一下这三种Timer的区别。System.Windows.Forms.Timer是使用得比较多的Timer,Timer St 阅读全文
posted @ 2011-03-23 10:32 TSAPI 阅读(2250) 评论(1) 推荐(1) 编辑