摘要: PrintDocument控件设置打印的文档。PrintDocument控件中比较常见的是控件的PrintPage事件和Print方法。PrintPage事件在需要为当前页打印的输出时发生。调用Print方法开始文档的打印进程。下面通过实例演示如何使用PrintDocument控件。例 创建一个Windows应用程序,向窗体中添加一个Button控件、一个PrintDocument控件和一个PrintPreviewDialog控件。在PrintDocument控件的PrintPage事件中绘制打印的内容,然后在Button按钮的Click事件下设置PrintPreviewDialog的属性预 阅读全文
posted @ 2011-06-01 13:11 亿典通柄棋 阅读(7577) 评论(3) 推荐(0) 编辑
摘要: <html><HEAD><TITLE>文本自动向上滚动</TITLE><META content="text/html; charset=gb2312" http-equiv=Content-Type><STYLE type=text/css>#demo a { width:100%; overflow:hidden; font:12px/16px tahoma; display:block; text-decoration:none; margin:2px; color:#4a551c; paddin 阅读全文
posted @ 2011-06-01 12:56 亿典通柄棋 阅读(9816) 评论(0) 推荐(1) 编辑
摘要: 本文详细介绍怎样将MenuStrip控件中的信息添加到TreeView控件中首先在WinForm窗体中添加一个MenuStrip控件和TreeView控件,根据个人的爱好把控件布局好后。在窗体的加载事件中(根据自己的情况而定)添加如下的代码:/// <summary> /// 窗体加载时事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param>private void FrmServ 阅读全文
posted @ 2011-06-01 12:15 亿典通柄棋 阅读(1438) 评论(0) 推荐(1) 编辑