• 大小: 0.04M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 鼠标  

资源简介

当鼠标按下 起来的时候抓取鼠标形状

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using System.Runtime.InteropServices;

namespace SnatchAtMouse
{
    public partial class Frm_Main : Form
    {
        public Frm_Main()
        {
            InitializeComponent();
        }
        private void Frm_Main_MouseUp(object sender MouseEventArgs e)
        {
            Graphics myGraphics = this.CreateGraphics();//创建窗体的Graphics类
            Cursor.Draw(myGraphics new Rectangle(e.X e.Y 10 10));//调用Cursor类的Draw方法抓取鼠标形状
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-12-22 23:11  SnatchAtMouse\
     文件         929  2013-05-05 19:11  SnatchAtMouse.sln
     文件       14336  2010-11-04 18:48  SnatchAtMouse.suo
     文件       14336  2010-11-04 18:48  SnatchAtMouse.v11.suo
     目录           0  2011-12-22 23:11  SnatchAtMouse\bin\
     目录           0  2013-05-05 19:11  SnatchAtMouse\bin\Debug\
     文件        8192  2013-05-05 19:11  SnatchAtMouse\bin\Debug\SnatchAtMouse.exe
     文件       22016  2013-05-05 19:11  SnatchAtMouse\bin\Debug\SnatchAtMouse.pdb
     文件         705  2010-07-10 21:01  SnatchAtMouse\Frm_Main.cs
     文件        1708  2010-07-09 16:42  SnatchAtMouse\Frm_Main.designer.cs
     文件        5814  2010-07-09 16:42  SnatchAtMouse\Frm_Main.resx
     目录           0  2011-12-22 23:11  SnatchAtMouse\obj\
     目录           0  2013-05-05 19:11  SnatchAtMouse\obj\Debug\
     文件        7170  2013-05-05 19:11  SnatchAtMouse\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2011-12-22 23:11  SnatchAtMouse\obj\Debug\Refactor\
     文件        3887  2013-05-05 19:11  SnatchAtMouse\obj\Debug\SnatchAtMouse.csproj.FileListAbsolute.txt
     文件         850  2013-05-05 19:11  SnatchAtMouse\obj\Debug\SnatchAtMouse.csproj.GenerateResource.Cache
     文件        1757  2013-05-05 19:11  SnatchAtMouse\obj\Debug\SnatchAtMouse.csprojResolveAssemblyReference.cache
     文件        8192  2013-05-05 19:11  SnatchAtMouse\obj\Debug\SnatchAtMouse.exe
     文件         180  2013-05-05 19:11  SnatchAtMouse\obj\Debug\SnatchAtMouse.Frm_Main.resources
     文件       22016  2013-05-05 19:11  SnatchAtMouse\obj\Debug\SnatchAtMouse.pdb
     文件         180  2013-05-05 19:11  SnatchAtMouse\obj\Debug\SnatchAtMouse.Properties.Resources.resources
     目录           0  2013-05-05 19:11  SnatchAtMouse\obj\Debug\TempPE\
     文件        4608  2013-05-05 19:11  SnatchAtMouse\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件         497  2010-07-09 16:41  SnatchAtMouse\Program.cs
     目录           0  2011-12-22 23:11  SnatchAtMouse\Properties\
     文件        1358  2010-07-09 16:40  SnatchAtMouse\Properties\AssemblyInfo.cs
     文件        2866  2013-05-05 19:11  SnatchAtMouse\Properties\Resources.Designer.cs
     文件        5612  2010-07-09 16:40  SnatchAtMouse\Properties\Resources.resx
     文件        1113  2013-05-05 19:11  SnatchAtMouse\Properties\Settings.Designer.cs
     文件         249  2010-07-09 16:40  SnatchAtMouse\Properties\Settings.settings
............此处省略1个文件信息

评论

共有 条评论