C#中实现qq和微信截屏的功能
c#中有一个控件可以实现,需要下载
1、创建一个windows窗体应用程序,框架选择netframework2.0
2、下载_SCREEN_CAPTURE.dll,并添加引用
3、添加一个button控件
4、添加代码
using _SCREEN_CAPTURE; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace screencap { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Button1_Click(object sender, EventArgs e) { FrmCapture frc = new FrmCapture(); frc.Show(); } } }
5、ok运行一下
附件:
网友评论0