登录
首页 » C# » Winfrom基础控件教程

Winfrom基础控件教程

于 2014-03-18 发布
0 296
下载积分: 1 下载次数: 0

代码说明:

Winfrom基础控件教程

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

发表评论

0 个回复

  • wpf 仿qq登陆 翻转效果 源码下载
    wpf 仿qq登陆 翻转效果 源码下载
    2015-03-25下载
    积分:1
  • C#调用visionpro
    C#调用visionpro
    2020-12-08下载
    积分:1
  • c# 抓取鼠标形状 示例
    当鼠标按下 起来的时候抓取鼠标形状
    2013-05-05下载
    积分:1
  • 南瑞综自104规约通信(源码)
    南瑞综自104规约通信实例
    2021-05-06下载
    积分:1
  • C#中使用开放平台的流程
    1、网站申请注册成为应用开发者,就会产生一个appkey2、当用户点击相应的同步按钮,判断用户是否已经使用Oauth 2.0授权1)若没有,引导需要授权的用户到如下地址https://api.weibo.com/oauth2/authorize?client_id=YOUR_CLIENT_ID&response_type=code&redirect_uri=YOUR_REGISTERED_REDIRECT_URI2)如果用户同意授权,页面跳转至 YOUR_REGISTERED_REDIRECT_URI/?code=CODE3)获得Access Token 入库3、调用statuses/upload_url_text接口,发布文字或图片   参数  access_token: 被授权用户的access_tokenstatus:要发布的微博文本内容 pic_id:已经上传的图片pid,多个时使用英文半角逗号符分隔 
    2013-11-06下载
    积分:1
  • POP3获取邮件内容
    POP3获取邮件内容
    2015-05-19下载
    积分:1
  • C# 酒店数据管理系统(含数据库)源码下载
    酒店管理系统源码 登陆账号密码 均是 admin  客房管理
    2015-03-04下载
    积分:1
  • DataGridView单元格合并和二维表头
    DataGridView单元格合并和二维表头
    2014-05-15下载
    积分:1
  • jplay C# 实例
    jplay C# 实例
    2014-05-14下载
    积分:1
  • 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
  • 696516资源总数
  • 106914会员总数
  • 0今日下载