登录
首页 » C# » Visual C#2017 范例程序.rar

Visual C#2017 范例程序.rar

于 2021-07-18 发布
0 299
下载积分: 1 下载次数: 2

代码说明:

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • C# 套打Demo
    套打Demo 【核心代码】using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Drawing.Printing;namespace Print_Demo{ public partial class Form1 : Form { public PrintDocument printDt = new PrintDocument(); //打印文档对象 Font printFont; //打印使用的字体 public Form1() { InitializeComponent(); } void printDt_PrintPage(object sender, PrintPageEventArgs e) { float pointX = 10; float pointY = 10; e.Graphics.DrawString("打印内容", new Font("宋体", 16F), Brushes.Black, pointX 60, pointY); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 26,pointX 300,pointY 26); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 35); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 56, pointX 300, pointY 56); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 65); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 86, pointX 300, pointY 86); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 95); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 116, pointX 300, pointY 116); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 125); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 146, pointX 300, pointY 146); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 155); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 176, pointX 300, pointY 176); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 185); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 206, pointX 300, pointY 206); e.Graphics.DrawString("检测结果", printFont, Brushes.Black, pointX, pointY 233); e.Graphics.DrawString("通过", new Font("宋体",22F,FontStyle.Bold), Brushes.Black, pointX 90, pointY 225); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 265, pointX 300, pointY 265); e.Graphics.DrawString("单位名称", printFont, Brushes.Black, pointX, pointY 275); } private void Form1_Load(object sender, EventArgs e) { printDt.PrintPage = new PrintPageEventHandler(printDt_PrintPage); printFont = new Font("宋体", 12F); } private void btnPrint_Click(object sender, EventArgs e) { //PrintDialog printDlg = new PrintDialog(); //printDlg.Document = printDt; //printDlg.AllowPrintToFile = true; //printDlg.AllowCurrentPage = true; //printDlg.AllowSelection = true; //printDlg.ShowDialog(); //printDlg.ShowDialog(); printDt.Print(); } private void btnLook_Click(object sender, EventArgs e) { PrintPreviewDialog printPreview = new PrintPreviewDialog(); printPreview.PrintPreviewControl.Document = printDt; printPreview.ShowDialog(this); } }}
    2021-05-06下载
    积分:1
  • c语言课件
    c语言课件
    2020-11-07下载
    积分:1
  • http post工具源码
    http post工具源码
    2015-06-30下载
    积分:1
  • parallel studio xe 2018许可文件
    【实例简介】parallel studio xe 2018许可文件
    2021-08-08 00:30:57下载
    积分:1
  • bbcode 转换成 html 示例源码(亲测通过) discuz 帖子可用
    如果你的bbcode含中文 需将这里改下: public static System.Text.RegularExpressions.Regex OptionRegex { get { //return new System.Text.RegularExpressions.Regex(@"(?[w]*)[s]*=[s]*(?[x25w/:/.-]*)", RegexOptions.Compiled); string strExp = @"(?[w]*)[s]*=[s]*(?[x25wsS/:/.-]*)"; return new System.Text.RegularExpressions.Regex(strExp, RegexOptions.Compiled); } }
    2014-07-18下载
    积分:1
  • 微信平台
    微信平台
    2013-12-30下载
    积分:1
  • c语言打字游戏代码.zip
    c语言打字游戏代码.zip
    2019-11-06下载
    积分:1
  • C++实战源码-手写数字识别程序(入门级实例579).zip
    C++实战源码-手写数字识别程序(入门级实例579).zip
    2019-10-01下载
    积分:1
  • c# jwt 网络令牌(JSON Web Tokens (JWT))
    c# jwt 网络令牌(JSON Web Tokens (JWT))
    2017-06-07下载
    积分:1
  • 在 web网站、winform、控制台使用log4net实例源码下载
    在 web网站、winform、控制台使用log4net实例源码下载
    2014-07-22下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载