登录
首页 » C# » c# 吸附窗体类,仿QQ效果

c# 吸附窗体类,仿QQ效果

于 2013-12-31 发布
0 207
下载积分: 1 下载次数: 0

代码说明:

窗体移动到屏幕边缘会自动伸缩,鼠标移上去的话就显示出来!

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

发表评论

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# jwt 网络令牌(JSON Web Tokens (JWT))
    c# jwt 网络令牌(JSON Web Tokens (JWT))
    2017-06-07下载
    积分:1
  • 设备管理器硬件扫描,发现新硬件
    设备管理器硬件扫描,发现新硬件
    2015-08-15下载
    积分:1
  • C# 批量重命名文件 实例源码下载
    C# 批量重命名文件 实例源码下载
    2013-09-20下载
    积分:1
  • c#帮助类大全.zip
    c#工具类
    2020-11-05下载
    积分:1
  • 51单片机采集PT100温度PID加热温度控制1602液晶显示
    本代码采用51单片机通过ADS1247采集PT100温度值,并可设定加热值,通过PID算法调节可控硅控制220V加热器控制温度,代码亲测可用;编译平台为keil4,单片机为stc89c52;
    2017-10-09下载
    积分:1
  • 仓库管理系统源码
    仓库管理系统源码
    2020-11-02 06:59:53下载
    积分:1
  • MapReduce 例子源码下载
    MapReduce.NET 来源于官方https://code.google.com/p/mapreduce-net
    2014-10-23下载
    积分:1
  • c# 通过winform打开控制台 并读取相关数据 例子
    winform与控制台通讯例子
    2015-06-16下载
    积分:1
  • OCR图片识别文字例子(支持多国文字识别)
    OCR图片识别文字例子(支持多国文字识别)
    2015-06-12下载
    积分:1
  • 696518资源总数
  • 105549会员总数
  • 12今日下载