欢迎来到天天文库
浏览记录
ID:33393171
大小:53.00 KB
页数:6页
时间:2019-02-25
《winform实现qq截图代码》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、usingSystem;usingSystem.Drawing;usingSystem.Collections;usingSystem.ComponentModel;usingSystem.Windows.Forms;usingSystem.Data;usingSystem.Runtime.InteropServices;namespaceCaptureScreen{//////CaptureScreenForm的摘要说明。///publicclassCaptureS
2、creenForm:System.Windows.Forms.Form{privateSystem.Windows.Forms.PictureBoxpicbox;privateSystem.Windows.Forms.ButtonexitBtn;privateSystem.Windows.Forms.ButtonaboutBtn;privateSystem.Windows.Forms.ButtonClearBtn;privateSystem.Windows.Forms.ButtonsaveBtn;priv
3、ateSystem.Windows.Forms.ButtonfullScreenBtn;privateSystem.Windows.Forms.ButtonmouseCaptureBtn;publicstaticImageimage=null;privateSystem.Windows.Forms.Panelpanel1;//////必需的设计器变量。///privateSystem.ComponentModel.Containercomponents=null;pu
4、blicCaptureScreenForm(){////Windows窗体设计器支持所必需的//InitializeComponent();////TODO:在InitializeComponent调用后添加任何构造函数代码//}//////清理所有正在使用的资源。///protectedoverridevoidDispose(booldisposing){if(disposing){if(components!=null){components.Dispose();
5、}}base.Dispose(disposing);}#regionWindows窗体设计器生成的代码//////设计器支持所需的方法-不要使用代码编辑器修改///此方法的内容。///privatevoidInitializeComponent(){this.picbox=newSystem.Windows.Forms.PictureBox();this.fullScreenBtn=newSystem.Windows.Forms.Button();this.mouse
6、CaptureBtn=newSystem.Windows.Forms.Button();this.ClearBtn=newSystem.Windows.Forms.Button();this.saveBtn=newSystem.Windows.Forms.Button();this.aboutBtn=newSystem.Windows.Forms.Button();this.exitBtn=newSystem.Windows.Forms.Button();this.panel1=newSystem.Win
7、dows.Forms.Panel();this.panel1.SuspendLayout();this.SuspendLayout();////picbox//this.picbox.Location=newSystem.Drawing.Point(0,40);this.picbox.Name="picbox";this.picbox.Size=newSystem.Drawing.Size(680,312);this.picbox.SizeMode=System.Windows.Forms.Picture
8、BoxSizeMode.AutoSize;this.picbox.TabIndex=0;this.picbox.TabStop=false;////fullScreenBtn//this.fullScreenBtn.Location=newSystem.Drawing.Point(0,0);this.fullScreenBtn.Name="fullScreenBtn";this.fullScreenBtn.Size=newSy
此文档下载收益归作者所有