摘要: Graphics.DrawImage 方法在指定的位置使用原始物理大小绘制指定的Image。命名空间:System.Drawing 程序集:System.Drawing(在 system.drawing.dll 中)public void DrawImage ( Image image, Point point)参数image要绘制的Image。pointPoint结构,它表示所绘制图像的左上角的位置。publicvoidDrawImagePoint(PaintEventArgs e){// Create image.Image newImage = Image.FromFile(" 阅读全文
posted @ 2013-11-06 17:56 summer0311 阅读(734) 评论(0) 推荐(0) 编辑
摘要: C#中Graphics的画图代码【转】架上图片了你就可以在画板上涂改了啊我要写多几个字上去string str = "Baidu"; //写什么字?Font font = Font("宋体",30f); //字是什么样子的?Brush brush = Brushes.Red; //用红色涂上我的字吧;PointF point = new PointF(10f,10f); //从什么地方开始写字捏?//横着写还是竖着写呢?System.Drawing.StringFormat sf = new System.Drawing.StringFormat();/ 阅读全文
posted @ 2013-11-06 17:53 summer0311 阅读(976) 评论(0) 推荐(0) 编辑
摘要: 简介BarCodeControl是一个用户制作条形码的控件。MicrosoftBarcodeControl9.0是可以在MicrosoftOfficeAccess窗体和报表中显示条码符号的ActiveX控件。BarcodeControl9.0支持常用的11个条码符号(UPC-A、UPC-E、EAN-13、EAN-8、Casecode、NW-7、Code-39、Code-128、USPostnet、USPostalFIM和JPPost)。一般情况下,在安装MicrosoftOfficeAccess2000或更高版本时能自行安装此控件。如需使用而又没有安装MicrosoftOfficeAccess 阅读全文
posted @ 2013-11-05 16:59 summer0311 阅读(7462) 评论(1) 推荐(0) 编辑
摘要: private void Form1_Load(object sender, System.EventArgs e) { //获取或设置一个值,该值指示是否发送到文件或端口 printDocument1.PrinterSettings.PrintToFile = true; //设置打印时横向还是纵向 printDocument1.DefaultPageSettings.Landscape = true; } private void fileOpenMenuItem_Click(object sender, System.EventArgs e) { OpenFile(); } privat 阅读全文
posted @ 2013-11-05 16:56 summer0311 阅读(34878) 评论(0) 推荐(0) 编辑
摘要: PrintDocument组件是用于完成打印的类,其常用属性、方法和事件如下:属性DocumentName:字符串类型,记录打印文档时显示的文档名(例如,在打印状态对话框或打印机队列中显示)。方法Print:开始文档的打印。事件BeginPrint:在调用Print方法后,在打印文档的第一页之前发生。事件PrintPage:需要打印新的一页时发生。事件EndPrint:在文档的最后一页打印后发生。若要打印,首先创建PrintDocument组件的对象。然后使用页面设置对话框PageSetupDialog设置页面打印方式,这些设置作为要打印的所有页的默认设置。使用打印对话框PrintDialog 阅读全文
posted @ 2013-11-05 16:51 summer0311 阅读(29332) 评论(0) 推荐(1) 编辑
摘要: PrintDocument实例所有的订阅事件如下:创建一个PrintDocument的实例.如下: System.Drawing.Printing.PrintDocument docToPrint = new System.Drawing.Printing.PrintDocument();设置打印机开始打印的事件处理函数.函数原形如下: void docToPrint_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)将事件处理函数添加到PrintDocument的PrintPage事件中。 docToP 阅读全文
posted @ 2013-11-05 16:47 summer0311 阅读(5598) 评论(0) 推荐(1) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.IO;using System.Net;using System.Threading;namespace WindowsFormsApplication1{ public partial class Form1 : For 阅读全文
posted @ 2013-11-05 16:37 summer0311 阅读(1214) 评论(0) 推荐(0) 编辑
摘要: System.Timers.Timer t = new System.Timers.Timer(5000); //设置时间间隔为5秒 private void Form1_Load(object sender, EventArgs e) { t.Elapsed += new System.Timers.ElapsedEventHandler(Timer_TimesUp); t.AutoReset = false; //每到指定时间Elapsed事件是触发一次(false),还是一直触发(true) } private void btnStart_Click(object sender, E.. 阅读全文
posted @ 2013-10-30 17:12 summer0311 阅读(38637) 评论(0) 推荐(1) 编辑
摘要: --SQL查找数据库中所有没有主键的数据表脚本--运行脚本后在消息中可能会显示下面现象中的一种:--(1)数据库中所有数据表都有主键(则证明所有数据表都有主键)--(2)当前数据表[数据表名]没有主键(则可方便找到没主键的数据表)declare @TableName nvarchar(250)--游标中取出的数据表名declare @AllTableHasPrimaryKey int--是否全部都有主键set @AllTableHasPrimaryKey=1--声明读取数据库所有数据表名和编号的游标declare mycursor cursor for select name from dbo 阅读全文
posted @ 2013-08-30 16:13 summer0311 阅读(1166) 评论(0) 推荐(0) 编辑
摘要: 一概述:HttpWatch强大的网页数据分析工具.集成在Internet Explorer工具栏.包括网页摘要.Cookies管理.缓存管理.消息头发送/接受.字符查询.POST数据和目录管理功能.报告输出HttpWatch是一款能够收集并显示页页深层信息的软件。它不用代理服务器或一些复杂的网络监控工具,就能够在显示网页同时显示网页请求和回应的日志信息。甚至可以显示浏览器缓存和IE之间的交换信息。集成在Internet Explorer工具栏。二安装HttpWatch略过^_^三基本功能介绍启动Httpwatch从IE的“查看”—“浏览器栏”—“HttpWatch”启动HttpWatch。如下 阅读全文
posted @ 2013-05-15 16:35 summer0311 阅读(372) 评论(0) 推荐(0) 编辑